Re: removing an item from an array
| From: | Levi Morrison | Date: | Sat, 18 Aug 2012 16:08:16 +0000 |
| Subject: | Re: removing an item from an array | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62245@lists.php.net to get a copy of this message | ||
On Sat, Aug 18, 2012 at 12:42 AM, Alexey Zakhlestin <indeyets@gmail.com> wrote:
>
> On 16.08.2012, at 0:18, Rasmus Schultz <rasmus@mindplay.dk> wrote:
>
>> How come there is no straight-foward obvious way to simply remove a given
>> value from an array?
>
> Well, this sounds like a reason for creating SplSet class
>
There's already SplObjectStorage which CAN act like a Set for objects
only. It's a terrible solution in my opinion and am working on
creating a proper one. I don't know if that effort will be accepted,
but I wanted to point out that a set already exists in the SPL.