note 30408 added to function.wordwrap

From: Date: Mon, 17 Mar 2003 12:54:43 +0000
Subject: note 30408 added to function.wordwrap
Groups: php.notes 
Request: Send a blank email to php-notes+get-45415@lists.php.net to get a copy of this message
This small function will break string of numbers with comma. It is extremely usable when you want for example show file size. Example: Before - 4238976 bytes After - 4,238,976 bytes function nice_number($number) { return strrev(wordwrap(strrev($number), 3, ',', 1)); } -- http://www.php.net/manual/en/function.wordwrap.php http://master.php.net/manage/user-notes.php?action=edit+30408 http://master.php.net/manage/user-notes.php?action=delete+30408 http://master.php.net/manage/user-notes.php?action=reject+30408

« previous php.notes (#45415) next »