Function name: array_multi2single
Function prototype: array array_multi2single(array)
Implementation function: Store the values of a multi-dimensional array into a one-dimensional array without saving the Key.
function array_multi2single($array)
{
static $result_array=array();
foreach($array as $value)
{
if(is_array($value))
{
array_multi2single($value);
}
else
$result_array[]=$value;
}
Return $result_array;
}
//Function test part
$array=array("1"=>array("A","B","C ",array("D","E")),"2"=>array("F","G","H","I"));
$array=array_multi2single($array );
echo "