JBZoo\Utils\Cli::check PHP 메소드

check() 공개 정적인 메소드

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

Usage Example

예제 #1
0
 /**
  * @return bool
  */
 public function isCli()
 {
     return Cli::check();
 }
All Usage Examples Of JBZoo\Utils\Cli::check