Suppose I have such an array:

$arr = array(); 

and such

 $mas = array("g"=>"minsk","c"=>"gomel"); 

With this assignment

 $arr[] = $mas; 

it turns out a two-dimensional array or all the same one-dimensional?

    2 answers 2

    Two-dimensional, of course. You write an array into an array. Will be

     $arr=array('0'=>array("g"=>"minsk","c"=>"gomel")); 

      It's easy to see for yourself:

       print_r($arr); 

      will issue

      Array ([0] => Array ([g] => minsk [c] => gomel))