Home > Archive > PHP Language > February 2007 > [SOLVED] Re: how to delete record in an array of arrays ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[SOLVED] Re: how to delete record in an array of arrays ?
|
|
| fabrice régnier 2007-02-15, 6:59 pm |
| ok, instead of
if($res['age']!=0) $filtered[] = $item;
i put
if($item['age']!=0) $filtered[] = $item;
and it rocks ;)
thanx,
f.
fabrice régnier wrote:
> hi ;)
>
>
> I've tested your 2 solutions and both doesn't work.
>
> First solution gives me an empty array as a result.
> Second solution gives me a syntaxic error.
>
> Maybe you forgot something ? Thanx, anyway.
>
> f.
>
| |
|
| On Thu, 15 Feb 2007 16:38:00 +0100, fabrice régnier <regnier.fab@free.fr>
wrote:
> ok, instead of
>
> if($res['age']!=0) $filtered[] = $item;
>
> i put
>
> if($item['age']!=0) $filtered[] = $item;
>
> and it rocks ;)
Good, I knew you could do it :P
--
Rik Wasmus
| |
| fabrice régnier 2007-02-15, 6:59 pm |
| > Good, I knew you could do it :P
*bows*
f.
|
|
|
|
|