to precise:
$array = Array('name'=>'Maxim', 'surname'=>'Maletsky');
unset($array['name']);
// now array has this structure:
// Array('surname'=>'Maletsky')
--
Maxim Maletsky
[EMAIL PROTECTED]
Jason Wong <[EMAIL PROTECTED]> wrote... :
> On Friday 08 November 2002 17:25, nikos wrote:
> > Does anybody know how to remove an item from an array?
> > Let's say
> >
> > $array('banna', 'apple','cherry')
> > foreach ($array as $value) {
> > if ($value=='chery') DELETE $value FROM $array
> > ...
>
> unset().
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
>
> /*
> Kiss me, Kate, we will be married o' Sunday.
> -- William Shakespeare, "The Taming of the Shrew"
> */
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php