PHP - Ripping dates from text

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Sep 06, 2012 10:20 am

PHP - Ripping dates from text

Postby epyon158 » Thu Sep 06, 2012 10:24 am

I have a testimonial page with testimonies similar to ->
"Oh my god, i love your soda. After the 5th bottle I had to take 3 ambiens to fall asleep - Some Guy 2/20/2012"

What I want to do is rip the date (2/20/2012) from the text.

Can anyone help me accomplish this?

php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: PHP - Ripping dates from text

Postby johnj » Thu Sep 06, 2012 10:32 pm

read about strpos() and substr() builtin php functions from

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 3 guests