Showing posts with label Q: what is split?. Show all posts
Showing posts with label Q: what is split?. Show all posts

Tuesday, 21 February 2012

Q: what is split?


splitSplit string into array by regular expression
$date "04/30/1973";
list(
$month$day$year) = split('[/.-]'$date);
echo 
"Month: $month; Day: $day; Year: $year<br />\n";