cristalmolix Posted March 31, 2010 Share Posted March 31, 2010 hello guys im having to create a multidimensional array in php 4 and it seems to not build the same way as in php 5 , is there any noted differences i should know about ? im using the loop arr[][item] = bla arr[][item2] = blah i had to use the id in the [id] it adds them as seperate entities will i have issues appending arrays to arrays thanks Quote Link to comment Share on other sites More sharing options...
ignace Posted March 31, 2010 Share Posted March 31, 2010 Arrays are the same in PHP4 & 5 Post your code Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 31, 2010 Share Posted March 31, 2010 You probably want: $arr[] = array( 'item' => 'bla', 'item2' => 'blah' ); Like ignace said, nothing changed here between PHP4 and 5 (or 3 for that matter) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.