> unset($A[2]);

No this function does not exactly what I want.
unset() makes empty hole with $A[2] = Null

I would like to have this result :
Array
(
    [0] => a
    [1] => b
    [2] => d
    [3] => e
    [4] => f
)
and not this one :
Array
(
    [0] => a
    [1] => b
    [3] => d
    [4] => e
    [5] => f
)


>> is it possible to remove an element of an indexed array such as this
>> exemple
>>      $A = array('a', 'b', 'c', 'd', 'e', 'f');
>> in a way that we can optain this result :
>>      $A = array('a', 'b', 'd', 'e', 'f');
>>
>> something like that perhaps ?
>> array_remove($A, 2);
>>
>> If such a function does not exists, what would be the more efficient way
>> to do so a lot of time on very big arrays ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to