On Jun 3, 2011, at 8:45 AM, Alan Haggai Alavi wrote: > Here, the scope of $name is limited to the foreach loop and not outside it. > So, you will have to declare the variable again for use outside the loop. But wouldn't that make the second "$name" a different variable? I'm not at my computer to try it. MarcThread Previous