note 29582 added to function.sprintf

From: Date: Tue, 18 Feb 2003 11:06:18 +0000
Subject: note 29582 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-44139@lists.php.net to get a copy of this message
If you want to format a phonenumber with spaces, use chunk_split() which splits a string into smaller chunks. It's much simpler than using sprintf. $phone = "12345678"; chunk_split ($phone, 2); will return 12 34 56 78 -- http://www.php.net/manual/en/function.sprintf.php http://master.php.net/manage/user-notes.php?action=edit+29582 http://master.php.net/manage/user-notes.php?action=delete+29582 http://master.php.net/manage/user-notes.php?action=reject+29582

« previous php.notes (#44139) next »