php check if cli mode

Solutions on MaxInterview for php check if cli mode by the best coders in the world

showing results for - "php check if cli mode"
Aaron
24 Jun 2019
1function is_cli()
2{
3    return php_sapi_name() === 'cli';
4}
5
similar questions
queries leading to this page
php check if cli mode