View Single Post
Old 06-29-2009, 05:41 PM   #7 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by captainmerton View Post
What would be in the array if $time was 00000000?
Try it and find out. A regular expression for something like this would be a much better step towards validation (the explode snippet doesn't validate anything!) and it wouldn't need to be particularly complicated. Have a stab at it.
Salathe is offline  
Reply With Quote