note 47655 deleted from function.strftime by cece

From: Date: Wed, 24 Nov 2004 10:10:31 +0000
Subject: note 47655 deleted from function.strftime by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80964@lists.php.net to get a copy of this message
Note Submitter: damian at artnova dot com dot pl ---- quick and dirty trimming of leading zero: for exp: $time = "08:30"; $comp = substr($time, 0, 1); if("0"==$comp) { $newTime = substr($time, 1); } else { $newTime = $time; } echo $newTime; ---- Reason: bad code

« previous php.notes (#80964) next »