We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's been extremely handy to use CLI with testing the examples.
I am here proposing a univeral way for both browser and CLI output:
<?php error_reporting(E_ALL); ini_set('display_errors', 'On'); // Output handler ob_start(function($buffer){ return (php_sapi_name() != 'cli') ? '<pre>'.htmlspecialchars($buffer).'</pre>' : $buffer; }); // Do your stuff // ... var_dump('some output');
The text was updated successfully, but these errors were encountered:
Or, if you are not gonna decorate the example pages then simply display plain text:
<?php error_reporting(E_ALL); ini_set('display_errors', 'On'); header('Content-Type: text/plain; charset=utf-8'); // Do your stuff // ... var_dump('some output');
Sorry, something went wrong.
No branches or pull requests
It's been extremely handy to use CLI with testing the examples.
I am here proposing a univeral way for both browser and CLI output:
The text was updated successfully, but these errors were encountered: