Jump to content

looping through an erray


kworld

Recommended Posts

Im trying to loop through an array untill the array is empty, but when the loop stops it misses out the first value of the array $x[0].

Im looping through the array backwards with this but i basically need it to read the value $x[0] before it stops.

 

$x=$myarray
while ($x > 0) 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.