Thread: Resolved buffer php
View Single Post
Old 12-10-2012, 03:06 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Buffer contents can be extracted using the ob_get_contents method. You can then use replace_this as the search criteria.
PHP Code:
$contents ob_get_contents();
ob_end_clean();
$contents str_replace('replace_this''New Description'$contents);
print 
$contents
Although I'd suggest it would be easier to simply use a variable to represent the description instead.
Fou-Lu is offline   Reply With Quote