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 Link to comment https://forums.phpfreaks.com/topic/197167-difference-between-multi-dimensional-arrays-in-php-4-and-5/ 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 Link to comment https://forums.phpfreaks.com/topic/197167-difference-between-multi-dimensional-arrays-in-php-4-and-5/#findComment-1034936 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) Link to comment https://forums.phpfreaks.com/topic/197167-difference-between-multi-dimensional-arrays-in-php-4-and-5/#findComment-1034938 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.