chrismassey
Programmer
Hello,
Once a foreach loop has completed its process I want to be able to take the result and print it onto a HTML template, rather than printing each $_ every time it loops round.
Is there a way to store all the $_ into a variable (say $html_contents) so that I can print a HTML template, and print $html_contents where needed.
Thanks
Once a foreach loop has completed its process I want to be able to take the result and print it onto a HTML template, rather than printing each $_ every time it loops round.
Is there a way to store all the $_ into a variable (say $html_contents) so that I can print a HTML template, and print $html_contents where needed.
Thanks