"@ Nilaab" <[EMAIL PROTECTED]> wrote:
> Hello,
> How do I unregister a single array item from an array? For example:
>
>
> session_start()
> session_register("item");
>
> $item['name'] = "Some Name";
> $item['img'] = "some_image_name.jpg";
> $item['desc'] = "Some Description";
> $item['price'] = 400;
>
--snip--
>
> unset($item['desc']);
>

that will work just fine.  think of it this way- the array $item is
registered (and maybe unregistered) with the session, but its elements
aren't individually registered with the array.  just register/unregister the
array, and otherwise work with the array by setting and unsetting the
elements as you described.



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

Reply via email to