note 23585 deleted from function.substr by aidan

From: Date: Sat, 03 Jul 2004 07:53:42 +0000
Subject: note 23585 deleted from function.substr by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72385@lists.php.net to get a copy of this message
Note Submitter: k.hellinx@pandora.be ---- A comment on the previous comment :p This is even a better way to do that: function manipulatedate($str) list($year, $month, $day) = split("\/", $str); echo $day."/".$month."/".$year } Now just use manipulatedate("year/month/day") to get 'your' date ... In this function, there are few chars what speeds up the loading time (on a good server this isn't noticable, but who knows :p), but the best part of my function is that you don't need to HAVE (you still can ...) a zero before your month or day if it exists only of one char ... Normally it should work better ... Greetzzz, Nullius

« previous php.notes (#72385) next »