Re: [PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi

Thanks!

Alex Shi


"Timothy J Hitchens" <[EMAIL PROTECTED]> 写入消息新闻
:002f01c26d8a$77332470$[EMAIL PROTECTED]
unset $some_variable[4];

then you would need to resort... etc (if needed)


Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-Original Message-
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 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.

Alex Shi


"Timothy J Hitchens" <[EMAIL PROTECTED]> 写入消息新闻
:002e01c26d89$780c14c0$[EMAIL PROTECTED]
> 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
>
>
> Is there a good way do drop an element from an array?
>
> Alex Shi
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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



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




Re: [PHP] How to drop a element from an array

2002-10-06 Thread Stuart Dallas

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




RE: [PHP] How to drop a element from an array

2002-10-06 Thread John W. Holmes

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 element from an array
> 
> 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
> 
> 
> Is there a good way do drop an element from an array?
> 
> Alex Shi
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




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




RE: [PHP] How to drop a element from an array

2002-10-06 Thread Timothy J Hitchens

unset $some_variable[4];

then you would need to resort... etc (if needed)


Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-Original Message-
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 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.

Alex Shi


"Timothy J Hitchens" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ
:002e01c26d89$780c14c0$[EMAIL PROTECTED]
> 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
>
>
> Is there a good way do drop an element from an array?
>
> Alex Shi
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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



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




Re: [PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi

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.

Alex Shi


"Timothy J Hitchens" <[EMAIL PROTECTED]> 写入消息新闻
:002e01c26d89$780c14c0$[EMAIL PROTECTED]
> 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
>
>
> Is there a good way do drop an element from an array?
>
> Alex Shi
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




RE: [PHP] How to drop a element from an array

2002-10-06 Thread Timothy J Hitchens

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


Is there a good way do drop an element from an array?

Alex Shi



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



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




[PHP] How to drop a element from an array

2002-10-06 Thread Alex Shi

Is there a good way do drop an element from an array?

Alex Shi



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