note 102317 added to function.ob-start

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
In case you're in for some readable representation for flags, this is a variant as a private class member:

<?php
class foo {
	private function getFlagsReadable($flags) {
		$flagNames = array('PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 'PHP_OUTPUT_HANDLER_END');
		$readable = '';
		foreach($flagNames as $flagName)
			if ($flags & constant($flagName) )
				$readable .= (strlen($readable) ? ' | ' : '') . $flagName
			;		
		return $readable;
	}
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 79.225.51.253
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit        -- https://master.php.net/note/edit/102317
Del: integrated  -- https://master.php.net/note/delete/102317/integrated
Del: useless     -- https://master.php.net/note/delete/102317/useless
Del: bad code    -- https://master.php.net/note/delete/102317/bad+code
Del: spam        -- https://master.php.net/note/delete/102317/spam
Del: non-english -- https://master.php.net/note/delete/102317/non-english
Del: in docs     -- https://master.php.net/note/delete/102317/in+docs
Del: other reasons-- https://master.php.net/note/delete/102317
Reject      -- https://master.php.net/note/reject/102317
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.