Having some issues while variable referencing inside “foreach” loop.
This is my CakePHP code snippet:
http://pastebin.com/s7qtYahA
1st code assigns double assigning for the same number of inner “foreach” loop iteration.
But the 2nd code does everything OK.
Can anyone please clarify the twist..? Thanks in advance. 🙂
Because $values has been reset/clear using array()