i want to explode a string two time and make a multi-dimensional array.
$data = \"i love funny movies \\n i love stackoverflow dot com \\n i like rock song\"
Try
$data = "i love funny movies \n i love stackoverflow dot com \n i like rock song"; $data = explode("\n", $data); for($i=0;$i
demo here