I have one file wit all array's...Example <? $textes = array ( "my_cart" => "Meu carrinho", "your_cart_contains" => "Meu carrinho contem", ); $countryList = array ( "ALBANIA", "BAHAMAS", ); $action_color_S = array ( "0" => "vermelho", "1" => "verde", "2" => "laranja", ); ?> I want to to produce the array from above file in the below format, $mixed = array ( "textes" => array ( "my_cart" => "Meu carrinho", "your_cart_contains" => "Meu carrinho contem", ), "countryList" => array ( "ALBANIA", "BAHAMAS", ), "action_color_S" => array ( "0" => "vermelho", "1" => "verde", "2" => "laranja", ) ); I will be waiting for reply thanks in advance
Unless I'm missing something in your question... $mixed= array ("textes"=>$textes, "countryList" => $countryList, "action_color_S"=>$action_colour_S);
Thank you very much ecentricNick, for your answer. I'm now stuck wit other problem. I've php files which consists of (only) set of array's, as one example i have shown above. Now i want to write a function which will take out all (only) array names from a php file and assigns to array variable(which u solved it). taking out all array name from php file is my problem. Thanks in advance.