thanks, I'm attachiing the new file with this email, the same test case
passed on it, hope iwould be useful.

On 1/28/07, Al-Faisal El-Dajani <[EMAIL PROTECTED]> wrote:
>
> I was just having a chat with a friend of mine over that code, and he
> brought to my attention that using foreach creates a copy of the array, and
> iterates through it... combine that with recursion and you might be looking
> at some serious memory consumption (depending on array size and elements).
>
> Therefore, it might be best to pass the array by reference and use a for
> or while loop to iterate through it. That way, you'll only have one copy of
> the array in memory.
>
> Correct me if i'm wrong :)
>
> On 1/27/07, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
> >
> > thanx dude,
> > and why haven't thought of that :P
> >
> > On 1/27/07, Al-Faisal El-Dajani < [EMAIL PROTECTED] > wrote:
> > >
> > > oh... damn.. you need to add "self::" before the method invocation on
> > > line 29. sorry about that!!
> > >
> > > --
> > > Al-Faisal El-Dajani
> > > Phone: +962-7-77 799 781
> > > P.O Box: 140056
> > > 11814 Amman, Jordan
> > >
> > >
> >
> >
> > --
> >                                  Ala'a A. Ibrahim
> > http://alaa-ibrahim.com/guru
> >
> >
>
>
> --
> Al-Faisal El-Dajani
> Phone: +962-7-77 799 781
> P.O Box: 140056
> 11814 Amman, Jordan
> >
>


-- 
                                 Ala'a A. Ibrahim
http://alaa-ibrahim.com/guru

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jordan PHP Users Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/JoPHP
http://Jolug.org/
-~----------~----~----~----~------~----~------~--~---

Attachment: ArraySearcher.php
Description: application/php

Reply via email to