note 1188 deleted from substr by torben

From: Date: Mon, 09 Oct 2000 23:15:05 +0000
Subject: note 1188 deleted from substr by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-6264@lists.php.net to get a copy of this message
If you want to do pad a string from the left (eg. from "8" to "0008"), you can use this: $num = substring("0000".$num, -4, 4)

« previous php.notes (#6264) next »