For Programmers: Free Programming Magazines  


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

Rik

2007-02-15, 6:59 pm

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com