On Thursday, April 25, 2002, at 03:22 PM, Liam Gibbs wrote:
> I've been checking the PHP documentation, but can't > find a function that will delete a member of an array, > like such: > > $a = array(1, 2, 3, 4, 5); > > Use the function, say array_delete($a, 3); and that > will delete the third member in the array (which would > be 4 above), so that the array would contain 1, 2, 3, > 5. > > Is there such a function? It's a secret. Sshh! unset($a[0]); // removes the first element Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php