Re: Array problrem!

From: Date: Wed, 14 Nov 2001 09:51:20 +0000
Subject: Re: Array problrem!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74570@lists.php.net to get a copy of this message
Try with foreach ($data as $v) echo '<br>'.$v; The values in the array _may_not_have consequetn indexes. Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS ----- Original Message ----- From: "De Necker Henri" <deNeckerH@ford.co.za> To: "PHP-General (E-mail)" <php-general@lists.php.net> Sent: Wednesday, November 14, 2001 11:35 AM Subject: [PHP] Array problrem! > Hi there. > I have an array like this : 1.2 , 0.3 , 0.5 , 1.6 , 0.3 > I output like this: > > while($data_array[$j]){ > echo "<br>$data[$j]" ; > $j++ ; > } > > My output is like this : 1 , 0 , 0 , 1 , 0 > The values in the db are floats and are read correctly ! > > Why is the values not there.Is there a specific way to store values in a > array? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#74570) next »