Thanks for the reply's guys ..
Roman Totale .. It didn't work for me. There were unexpected results.
stolzyboy .. That's the direction I needed, thank you. Here is what I'm using (I found it on the page that you linked to above).
function remove_one_element($array,$index_to_remove){
//$index_to_remove : type integer
$index_nb_elements=count($array)-1;
switch($index_to_remove){
case 0:
$array = array_slice($array, 1);
break;
case $index_nb_elements :
$array = array_slice($array, -1);
break;
default:
$array_start = array_slice($array,0, $index_to_remove);
$array_end = array_slice($array, $index_to_remove+1);
$array = array_merge ($array_start, $array_end);
break;
}
return $array;
}