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";

No comments:

Post a Comment