does array sorted like you show in example?
| From: | Galkov Vladimir | Date: | Tue, 30 Oct 2001 22:26:48 +0000 |
| Subject: | does array sorted like you show in example? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72928@lists.php.net to get a copy of this message | ||
Good day!
;-) does array sorted like you show in example?
then the shortest way will be:
$a = array_element_delete_function($a, 2);
.......
function array_element_delete_function($a, $ind)
{
$a[$ind] = $a[0];
unset($a[0]);
return sort($a);
}
ofcourse if count($a) not criticaly large....
Galkov Vladimir
galkov@kraft-s.ru
ICQ 84873967