php multidimensional array problem
        Posted  
        
            by ntan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ntan
        
        
        
        Published on 2010-05-14T06:49:38Z
        Indexed on 
            2010/05/14
            6:54 UTC
        
        
        Read the original article
        Hit count: 273
        
Hi to all,
i am trying to setup a multidimensional array but my problem is that i can not get the right order from incoming data.
Explain
$x[1][11]=11;
$x[1]=1;
var_dump($x);
In the above code i get only x[1].
To right would be
$x[1]=1;
$x[1][11]=11;
var_dump($x);
But in my case i can dot ensure that x[1] will come first, and x[1][11] will come after.
Is there any way that i can use the first example and get right the array. Keep in mind that the array depth is large.
Thats
© Stack Overflow or respective owner