function cek ($table) {
$array = array();
foreach ($table as $yeni) {
$array[] = $yeni;
}
return $array;
}
$sor=mysql_query("select * from persons order by id desc");
$test = cek($sor);
echo $test['isim'];