« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for àáãç (0.002 sec.)
getopt — コマンドライン引数のリストからオプションを取得する | PHP 8.3 9414
getopt (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) getopt — コマンドライン引数のリストからオプションを取得する 説明 function getopt ( string $short_options , array $long_options = [] , int &$rest_index = null ): array | false スクリプトに渡された ... を一度に渡す <?php // スクリプト example.php $options = getopt ( "abc" ); var_dump ( $options ); ?> shell> php example.php -aaac 上の例の出力は以下となります。 array(2) { ["a"]=> array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> bool(false) } ["c"] ...
https://man.mtool.work/php/8.3/function.getopt.html
PREV 1 NEXT