note 42604 deleted from function.array-slice by betz

From: Date: Sun, 23 May 2004 09:14:49 +0000
Subject: note 42604 deleted from function.array-slice by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69985@lists.php.net to get a copy of this message
Note Submitter: php@sharpdreams.com ---- Contrary to what adamplumb at comcast dot net posted below, to delete a single element of either an associative array or indexed array, use unset($array[$index]); It will preserve any keys automatically. If you need to re-index them, use array_slice or another array func.

« previous php.notes (#69985) next »