1.2.1313. Use Cli¶
Signal the usage of code in CLI mode, through the usage of
$argv
and$argc
variables, or the getopt() function.
<?php
// Characteristics of CLI usage
getopt("abcd");
?>
1.2.1313.1. Specs¶
Short name |
Php/UseCli |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
High |
Features |
cli, $argv, $argc |
Available in |