Tried that now, and with the same results print_r($ra); still only shows the last info inserted in the array :/
"Aaron" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > just assign the value to $ra[] > > > "Hawk" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have a for loop, and an if that checks something, and if true, it's > > supposed to add info to an array called $ra, but instead of adding it to > the > > array it seems like it's overwriting it, currently I'm using $ra[$r] = > > "$r"; where $r is a number.. > > after the for } I put a print_r($ra); and it only prints the last thing > that > > was added to the array. How do I solve this? Haven't used arrays much so > I'm > > trying to learn, but it's not going very well :) > > > > Håkan > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php