travis Posted April 10, 2008 Share Posted April 10, 2008 is there a more efficient way of doing this? for ($i=0;$i<=$theight+1;$i+=1) { for ($j=0;$j<=$twidth+1;$j+=1) { $table[$i][$j] = 0; $usname[$i][$j] = 0; $attrib[$i][$j] = -2; } } Link to comment https://forums.phpfreaks.com/topic/100424-initiallizr-array/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.