I have the following array Array ( ['6'] => mobile ) while i printing my array with print_r function of php. I need to separate the index and value of the array in two different variables.
The actual code is
$ques=$_POST['selector'];
$count = count($ques);
for($i=0; $i < $count; $i++)
{
print_r ($ques)."\n";
}
How can i do this?