Re: Unsetting Array Element

From: Date: Wed, 13 Nov 2002 09:33:38 +0000
Subject: Re: Unsetting Array Element
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124234@lists.php.net to get a copy of this message
In theory the memory should be free and the array should be smaller... On Wed, 2002-11-13 at 07:11, Monty wrote: > Does unsetting an array element make the array smaller? For example, if I > have two elements in an array... > > $array = ("title" => "Title of Document", > "content" => "Ten paragraphs of text in here..." ); > > ...then issue this command... > > unset ($array['content']); > > ...will this make $array smaller and more efficient if I then pass it on to > a function for processing? > > Thanks! -- .: B i g D o g :.

« previous php.general (#124234) next »