Hi guys i have a problem when i want to “print_r” my variable string that i’ve “explode”. the detail is below…
$var = “1,2,3,4,5”;
$sat = explode(‘,’,$var);
echo"<pre>“;
print_r($sat);
echo”</pre>";
i want to have result like this…
Array
(
[0] => Array
(
[new] => 1
)
[1] => Array
(
[new] => 2
)
[2] => Array
(
[new] => 3
)
[4] => Array
(
[new] => 4
)
…
)
but when i’m tried my script, it was not same like above. what is wrong with my script and what should i do guys. Please help me!