Re: Reg- array_unique

From: Date: Fri, 02 Aug 2002 07:48:08 +0000
Subject: Re: Reg- array_unique
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110789@lists.php.net to get a copy of this message
Post that on php-dev@lists.php.net Andrey ----- Original Message ----- From: "SenthilVelavan" <senthilvellan@gmx.net> To: <php-general@lists.php.net> Sent: Friday, August 02, 2002 10:54 AM Subject: [PHP] Reg- array_unique Hello All, I tried a program using array_unique.It shows different outputs in PHP4.06 and PHP4.22 Program : <?php $employee[0]='snp'; $employee[1]='snp'; $employee[2]='snp'; $yee=array_unique($employee); while(list($i,$c)=each($yee)) { echo "Index ".$i." Content".$c; } ?> Output : PHP4.06 Index 0 Content snp PHP4.22 Index 2 Content snp Why the index is differed in two version? Whether the function array_unique is handled in a different way in PHP4.22. Any help is appreciated. Advance thanks and regards, SenthilVelavan.P

« previous php.general (#110789) next »