I want split a string using PHP to get a individual date info.
For example:
$date = '08/05/2010';
would create the varables
$month = '08'; $day = '05'; $year = '2010';
Thank you.
Use explode:
explode
$date = '08/05/2010'; list($month, $day, $year) = explode('/', $date);
1.4m articles
1.4m replys
5 comments
57.0k users