Answers for "php check if cli"

PHP
0

php check if cli

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

Browse Popular Code Answers by Language