Re: How Can I delete an Item of one array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you use the unset() function:

unset($array[$key]); // http://www.php.net/unset

you can reindex the keys if they are numeric with:

$reindexedArray = array_values($array); // http://www.php.net/ array_values

Jordan


On Aug 17, 2005, at 1:12 PM, Tomás Rodriguez Orta wrote:

Hi people.

How Can I do this.
I want to delete an element behind of array?, what function What Can I use?

best regards TOMAS


---------------------------------------------------------------------- --- Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27 en el dominio de correo angerona.cult.cu y no se encontro ninguna coincidencia.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux