hello,
i want to arrange variables in array from foreach loop like this
foreach($arr as $array){
$variable['first'] = $array['im']; //first record from im column in a table
$variable['second']= $array['im']; //2nd record from im column in a table
}
echo $variable['first'];
echo $variable['second'];
the purpose is to make the variable available outside the loop without looping. any idea please....