Hi James,
That's not the issue - the issue is that it's somehow screwing with my array and copying Item1 into the space where Item2 should be... Cheers, Steve -----Original message----- From: James McGlinn <[EMAIL PROTECTED]> Sent: Sun 19-10-2008 18:38 To: [email protected]; Subject: [phpug] Re: Bug in foreach()? Hi Steve, While programming I stumbled across this - can anyone reproduce this, or is it just a bug in my system? Replacing the $currtag in the final foreach loop with &$currtag causes it to behave as expected, but the code as pasted below is obviously badly dysfunctional. Is anyone able to shed some light on this? This looks fine to me - can you post what you're expecting? print_r($tags); foreach($tags as $currtag) { print_r($tags); } Did you mean to print_r($currtag)? Kind regards, James McGlinn __________________________________ CTO Eventfinder Limited Suite 106, Heards Building 2 Ruskin Street, Parnell, Auckland 1052 Phone: +649 365 2342 Mobile: +6421 633 234 [EMAIL PROTECTED] | www.eventfinder.co.nz --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
