note 5425 deleted from function.array-splice by kennyt

From: Date: Mon, 05 Jan 2004 02:44:54 +0000
Subject: note 5425 deleted from function.array-splice by kennyt
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62929@lists.php.net to get a copy of this message
Note Submitter: andrei@ispi.net ---- Here goes a solution to the problem of being unable to remove an element by key. $key_index = array_keys(array_keys($array), $target_key); array_splice($array, $key_index[0], 1);

« previous php.notes (#62929) next »