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',
),
)
var_export by passing true in 2nd parameter of the function, i.e. $output = var_export($array, true);. Then, OP can play with $output.
var_export()function?