Sudhir Bastakoti's Blog for PHP, JQuery, Ajax
12 November, 2009
Time format check regular expression
Following regular expression checks for time correctness:
(1[012]|[1-9]):[0-5][0-9] (am|pm)
05 July, 2009
File extension in PHP
For getting file extension, simply this can be done:
$fileName = "SampleOne.jpg";
$fileExtension = array_pop(explode(".", $fileName));
Newer Posts
Home
Subscribe to:
Posts (Atom)