|
Posted by none on 02/16/06 06:05
Hello:
Using PHP 4.3.11
The line: $strDate = preg_split('/[\.\/-]/', $my_date);
works to break apart a date in the form mm/dd/yyyy or mm.dd.yyyy or
mm-dd-yyyy
but the line: $strDate = preg_split('/[\/-\.]/', $my_date);
doesn't work.
Why does the order of the items make a difference?
Thanks,
Ken
Navigation:
[Reply to this message]
|