Possible Duplicate:
How to “flatten” a multi-dimensional array to simple one in php?
How to Flatten a Multidimensional Array?
if I have this code:
$a = array('a','b',array('c','d'));
I would like to know if there is a function that can convert all inner arrays into their elements so the result would be:
$a = array('a','b','c','d');
So I have only the elements of the inner arrays and not arrays.