How i can replace the array
values in php
Array ([0] => Array ([ss] => k))
into
array("0" => array ("ss" => "k"));
How i can replace the array
values in php
Array ([0] => Array ([ss] => k))
into
array("0" => array ("ss" => "k"));
You have to write you own function to output the format you like.
While the nearest solution with build-in function is var_export
.
$array = array(array('ss' => 'k'));
var_export($array);
Output:
array (
0 =>
array (
'ss' => 'k',
),
)