If I have a function that simply spits out a bunch of text.
eg
<?php
function stuff() {
?>
Blag blag blag<BR>
more blah blah<br>
<?php
get stuff from a database and output
}
?>
Now I want to set a varaible to the string of whatever that puts out.
If I use
$somevar=stuff();
It outputs stuff() there. If I use:
$somevar="stuff()";
Then $somevar equals the text stuff() not the function value. I've tried with the & as well.
Thoughts?
Thanks,
Roger