Re: Simple array question, array delete

From: Date: Thu, 07 Apr 2005 04:33:51 +0000
Subject: Re: Simple array question, array delete
Groups: php.general 
Request: Send a blank email to php-general+get-212502@lists.php.net to get a copy of this message
On 4/7/2005 5:19:24 AM, ceo@l-i-e.com wrote: > On Wed, April 6, 2005 6:09 am, Ryan A said: > > > when the user gives me a number, i have to check if its in the array > and > > > delete that entry...how do i do that? > > > I have looked at the manual but have gotten confused with array > > > pop,splice,array_key_exists etc > > > > http://php.net/array_search > > http://php.net/unset > > > > It can be confusing at first, with all the different functions that all > > seem to do not quite what you want. :-) > Exactly...theres a s**tload of array functions there...and php being so robust I figured there would be one simple function instead of combining two.... I have unsed unset in the past...but not array_search Thanks, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005

« previous php.general (#212502) next »