Re: [PHP] unset in foreach breaks recrusion

2008-07-01 Thread David Sky
variable eg $sorted = recur($array); It's easier to use and understand :) Thanks for your reply! On Tue, Jul 1, 2008 at 6:34 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > David Sky wrote: >> >> Hey, >> >> Can't use your example, as you check weather >>

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread David Sky
someone to > answer ;-) > > There are lots of people from all over the world so if the one helping your > case is in the opposite part of the world and is asleep... it takes time ;-) > > Cheers, > > Roberto > > > > > On Mon, Jun 30, 2008 at 17:38, David Sky &l

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread David Sky
rusion($array, &$return); > > var_dump( $return ); > ?> > > So you don't make any recursive call, you don't lose too much efficiency and > it should work well for the whole array. > > Try the two solutions above and see whether if any is up to your probl

[PHP] unset in foreach breaks recrusion

2008-06-29 Thread David Sky
Hello everyone! A couple of days ago I submitted a bug to PHP http://bugs.php.net/bug.php?id=45385 But I was mistaken, apparently it's not a bug. And I was "sent" here to get help. Although I did tried what was suggested in the response, Actually I tried it before I wrote about the bug, as I foun