Mega Code Archive

 
Categories / Php / Strings
 

Parsing a date with preg_split()

<?php $ar = preg_split('/[- :]/',$date); var_dump($ar); ?>