Ho fatto di meglio e ti allego un esempio
codice:
<?php
// demo array to sort
$latest_array = array(
array('news','1234567890','','asdpojq'),
array('news','1234567892','uruy','xbuqiwpo'),
array('comment','1234567893','fghj','mjktyu'),
array('article','1234567891','cvmo','pjklgg'),
array('news','1234567894','qwenb','asbhtyhj'),
);
$sort_field = 0; // enter the number of field to sort
// compare function
function cmpi($a, $b)
{
global $sort_field;
return strcmp($a[$sort_field], $b[$sort_field]);
}
// do the array sorting
usort($latest_array, 'cmpi');
for ($i=0, $m = sizeof($latest_array); $i < $m; $i++) {
echo "\t
". $latest_array[ $i ][0] ."</p>\n";
echo "\t
". $latest_array[ $i ][1] ."</p>\n";
echo "\t
". $latest_array[ $i ][2] ."</p>\n";
echo "\t
". $latest_array[ $i ][3] ."</p>\n";
}
?>
ora ti chido di aiutarmi per il problema dei valori suddivisi che vorrei ottenere...