Re: Removing a row from an Array

From: Date: Tue, 05 Jun 2007 22:20:30 +0000
Subject: Re: Removing a row from an Array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256134@lists.php.net to get a copy of this message
On Mon, June 4, 2007 2:13 pm, Ken Kixmoeller -- reply to ken@kixmoeller.com wrote: > Hey - - - - - - -- > > To do this, I am: > > - looping through the array > - copying the rows that I want to *keep* to a temp array, and > - replacing the original array with the "temp' one. > > Seems convoluted, but I couldn't find any function to remove a row of > an array. Am I missing something (other than a few brain cells)? http://php.net/unset As in, unset($array['goner']); -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#256134) next »