|
Home
iRate! Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » htmlentities() » imagecreatefrompng() » site_pageranks() » imagepng() » imagestring() » imagedestroy() » header() » imagecolorallocate() » preg_match() » session_start() » getimagesize() » urlencode() » ob_start() » flush() » strpos() » str_replace() » htmlspecialchars() » array2vars() » fopen() » nl2br() » preg_match_all() » setcookie() » strstr() » ob_flush() » ereg() » preg_split() » ereg_replace() » var_dump() Our Sponsors » Weblog Community » Listen to Podcasts » Rock Music Community - meet fans Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email Tabpole[AT]Gmail[DOT]com. |
PHP Functions
Function: ob_get_clean (PHP 4 >= 4.3.0, PHP 5) ob_get_clean -- Get current buffer contents and delete current output bufferDescriptionstring ob_get_clean ( void )This will return the contents of the output buffer and end output buffering. If output buffering isn't active then FALSE is returned. ob_get_clean() essentially executes both ob_get_contents() and ob_end_clean() .
Example 1. A simple ob_get_clean() example <?php ob_start(); echo "Hello World"; $out = ob_get_clean(); $out = strtolower($out); var_dump($out); ?> Our example will output: string(11) "hello world" Related Function(s) |