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

Reply via email to