JBZoo\Utils\Cli::check PHP Method

check() public static method

Is command line
public static check ( ) : boolean
return boolean
    public static function check()
    {
        return PHP_SAPI === 'cli' || defined('STDOUT');
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @return bool
  */
 public function isCli()
 {
     return Cli::check();
 }
All Usage Examples Of JBZoo\Utils\Cli::check