note 88736 deleted from function.array-count-values by danbrown

From: Date: Thu, 05 Feb 2009 17:01:52 +0000
Subject: note 88736 deleted from function.array-count-values by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150261@lists.php.net to get a copy of this message
Note Submitter: theuedimaster at gmail dot com ---- psbauman, The reason your zeros are stripped is because you are storing that initial leading-zero value as an integer. For example: $id_numbers[0] = 0056789; rathern than: $id_numbers[0] = "0056789"; If you store it as a string, the leading zeros will be kept. Try printing out the value of $id_numbers[0] right after you set it, and you will see what I mean. TC

« previous php.notes (#150261) next »