Jump to content

[SOLVED] Navigating Arrays


Guardian-Mage

Recommended Posts

My Current Code

$i=0;
while ($i < count($array)) {
$data[$i][0] = $array[$i][0];
$data[$i][1] = $array[$i][1];
}

All is good, but what is the array goes $array[0], $array[1], $array[7]. How can I make sure i get the contents of a full array without checking to see if the array is full. I don't want to check the array if it is $array[11001010100101] or $array[-1] (not sure if this is possible). I am using this for forms. My forms go

<input type="text" name="qty[0]" />
<input type="text" name="qty[1]" />

 

Someone could easily edit this to screw up my script. Any help?

Link to comment
https://forums.phpfreaks.com/topic/107359-solved-navigating-arrays/
Share on other sites

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.