Re: Array

From: Date: Thu, 15 Feb 2001 11:36:40 +0000
Subject: Re: Array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39883@lists.php.net to get a copy of this message
use array_splice ($myarray, 1 ,1); hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India ----- Original Message ----- From: "David Tandberg-Johansen" <david@datajo.no> To: <php-general@lists.php.net> Sent: Thursday, February 15, 2001 4:35 PM Subject: [PHP] Array > How can I delete one record in a array? > > Example: > > $myarray = array ("a", "b", "c"); > > I want to delete/take away "b" so the array is: > > $myarray = array ("a", "c"); > > David > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#39883) next »