Php Check If Cli

[Solved] Php Check If Cli | Php - Code Explorer | yomemimo.com
Question : php check if cli

Answered by : alexander-matzen

function isCommandLineInterface()
{ return (php_sapi_name() === 'cli');
}

Source : | Last Update : Wed, 24 Feb 21

Answers related to php check if cli

Code Explorer Popular Question For Php