I havent a clue how to describe it, so yeah the title doesnt make much sense
As im pulling data out of a db and running a loop, is there any way i can basically store some of that information in a formatted capacity, and then display it later down the line, rather than having to display it at the point the script is at??
For example, can i store and output html with a variable?
I was hoping that i could use something along the lines of
However, it automatically displays the contents which makes it useless to me, and i dont know of anything which would basically pull the contents of a file and store it within the variable, to then be able to output when required.PHP Code:
$table = include("header.php");
$table .= include("body.php");
$table .= include("footer.php");
Is there something? I could probably do what i need in this instance with an array (i really hate them!) but there has been times when i've wanted to to be able to build stuff as im pulling info, but not wanting it to be displayed there & then and often thought it'd be handy.