note 10082 added to strpos

From: Date: Tue, 12 Dec 2000 12:45:03 +0000
Subject: note 10082 added to strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-8645@lists.php.net to get a copy of this message
really easy way to comma deliniate numbers greater than 1000 (but not greater than 99,999): if ($numchars > 3) { $newnum = substr ($oldnum, 0, ($count-3)) . "," . substr ($oldnum, -3); } echo($newnum); http://www.php.net/manual/function.strpos.php

« previous php.notes (#8645) next »