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