isCli.php
Table of Contents
Functions
- isCli() : bool
- Checks if the PHP script is running in CLI mode (terminal, cron, Symfony Consoleā¦).
Functions
isCli()
Checks if the PHP script is running in CLI mode (terminal, cron, Symfony Consoleā¦).
isCli() : bool
Returns true if PHP is executed from the command line.
Tags
Return values
bool —true if the script is running in CLI, false otherwise