-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Monday, 7 October 2002 8:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How to drop a element from an array
Yes I have read about the array functions in the manul. But I don't
think they are what I need. What I want is to drop what ever an
Alex Shi wrote:
> Is there a good way do drop an element from an array?
Unset (http://www.php.net/unset) the element and it will be removed from
the array.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That adds an element to an array. Just use unset.
unset($array[0]);
---John Holmes...
> -Original Message-
> From: Timothy J Hitchens [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 06, 2002 6:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] How to drop a elemen
] How to drop a element from an array
Yes I have read about the array functions in the manul. But I don't
think they are what I need. What I want is to drop what ever an element
from an array, not just from top or bottom.
I can create a function to do this. But I need a better solution, that
Yes I have read about the array functions in the manul. But I don't
think they are what I need. What I want is to drop what ever an
element from an array, not just from top or bottom.
I can create a function to do this. But I need a better solution, that
is to say not to cost too much memery.
Al
Hint... look at array_push etc (like a stack)
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Monday, 7 October 2002 8:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to drop a element from an array
6 matches
Mail list logo