note 49176 deleted from function.chunk-split by nlopess

From: Date: Fri, 11 Mar 2005 23:34:01 +0000
Subject: note 49176 deleted from function.chunk-split by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86307@lists.php.net to get a copy of this message
Note Submitter: Splinter ---- In my opinion there is an easier way to convert large numbers to easy readable numbers by using strrev several times. Whitout any use of a function this would do the same trick: <?php $number="1234567890"; echo strrev(substr(chunk_split(strrev($number), 3, ','), 0, -1)); ?> // 1,234,567,890

« previous php.notes (#86307) next »