note 123639 added to outcontrol.examples.basic
| From: | dario dot cangialosi at gmail dot com | Date: | Mon, 25 Feb 2019 13:40:12 +0000 |
| Subject: | note 123639 added to outcontrol.examples.basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210287@lists.php.net to get a copy of this message | ||
<?php
function ob($function){
ob_start();
$function();
$produced = ob_get_contents();
ob_end_clean();
return $produced;
}
echo ob(function(){echo 123;})=='123'?"echo captured\n":'';
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.142 (proxied: 79.62.221.147)
----
Manual Page -- http://php.net/manual/en/outcontrol.examples.basic.php
Edit -- https://master.php.net/note/edit/123639
Del: integrated -- https://master.php.net/note/delete/123639/integrated
Del: useless -- https://master.php.net/note/delete/123639/useless
Del: bad code -- https://master.php.net/note/delete/123639/bad+code
Del: spam -- https://master.php.net/note/delete/123639/spam
Del: non-english -- https://master.php.net/note/delete/123639/non-english
Del: in docs -- https://master.php.net/note/delete/123639/in+docs
Del: other reasons-- https://master.php.net/note/delete/123639
Reject -- https://master.php.net/note/reject/123639
Search -- https://master.php.net/manage/user-notes.php