ComStarters
hi hi
Bookmark This Page

obstart and stuff

ob_start is probably my favorite php function here is how it works

This php script was submitted by rob
This script has been downloaded 44 times.
<?
ob_start
();
for (
$i=1;$i<10;$i++) {
echo (
"$i <br />");
}
$output ob_get_contents();
ob_end_clean();

echo (
"hello this is blah blah and now I will insert my loop here $output wow that was cool, as you can see we stored the loop in 'out' and displayed it at a latter time");
?>
//This will output:
hello this is blah blah and now I will insert my loop here 1
2
3
4
5
6
7
8
9
wow that was cool, as you can see we stored the loop in 'out' and displayed it at a latter time


Submit your comment, question, critique etc..
feel free to enter your url too, it's a free link back to you:
Please keep your comment related to the content on this page.

Comments