PHP 7.2.0 Release Candidate 2 Released

Voting

Please answer this simple SPAM challenge: max(nine, five)?
(Example: nine)

The Note You're Voting On

Kodeart
6 years ago
Check directly without calling functions:
<?php
if (PHP_SAPI === 'cli')
{
  
// ...
}
?>

You can define a constant to use it elsewhere
<?php
define
('ISCLI', PHP_SAPI === 'cli');
?>

<< Back to user notes page

To Top