« Return to Thread: Implode a 2D Array

Implode a 2D Array

by salmarayan :: Rate this Message:

Reply to Author | View in Thread

Can any one tell me how can i implode a two D Array.
i can implode normal arrays, but when i try to implode multidimensional Arrays, the result is empty.
can some one tell me how to implode an array Like This


$x=array ( [0] => array ( [side] => sell [stock_code] => AFMC.CA [quantity] => 200  ) ,
[1] => array ( [side] => buy [stock_code] => AFMC.CA [quantity] => 200 );

i want to implode it in a way, the later one i can seperate rows, meaning i can seperate [0] from [1] and the elements in each row, like the side stock code using the SPLIT function.
Thanks in Advance. :)

 « Return to Thread: Implode a 2D Array