note 37111 added to function.array-slice

From: Date: Mon, 03 Nov 2003 17:57:56 +0000
Subject: note 37111 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-59728@lists.php.net to get a copy of this message
hmm, deleting just 1 value from the array, try this <? // Delete from $array, at postion 3, only 1 value array_splice($array, 3, 1); ?> Way easier / faster then the "remove_one_element" described below. Roeltje... ---- Manual Page -- http://www.php.net/manual/en/function.array-slice.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37111 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37111&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37111&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59728) next »