Answers for "php check if command line"

PHP
0

php check if cli

function isCommandLineInterface()
{
    return (php_sapi_name() === 'cli');
}
Posted by: Guest on February-17-2021

Code answers related to "php check if command line"

Browse Popular Code Answers by Language