How to show array to character string.
$array is associative array.
1 2 3 4 5 6 7 8 9 10 11 |
$array = array( 1 ,2 ,3 ,4 => array( 5 ,6 ) ); $result = print_r($array, true); echo $result; |
Display
1 |
Array ( [0] => 1 [1] => 2 [2] => 3 [4] => Array ( [0] => 5 [1] => 6 ) ) |