Function __global->getopt

Definitions

sources_custom/phpstub.php

  • Gets options from the command line argument list.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$options string required parameter N/A N/A Each character in this string will be used as option characters and matched against options passed to the script starting with a single hyphen (-)
$longopts array [] N/A N/A Each element in this array will be used as option strings and matched against options passed to the script starting with two hyphens (--)
$optind integer 0 N/A N/A The index where argument parsing stopped

Return

  • Map of options
  • Type: array
  • Set: N/A
  • Range: N/A