Parser
in package
FinalYes
Table of Contents
Methods
- parse() : array<string|int, mixed>
- parseLongOption() : void
- parseShortOption() : void
Methods
parse()
public
parse(array<string|int, mixed> $argv, string $shortOptions[, array<string|int, mixed>|null $longOptions = null ]) : array<string|int, mixed>
Parameters
- $argv : array<string|int, mixed>
- $shortOptions : string
- $longOptions : array<string|int, mixed>|null = null
Tags
Return values
array<string|int, mixed>parseLongOption()
private
parseLongOption(string $arg, array<string|int, mixed> $longOptions, array<string|int, mixed> &$opts, array<string|int, mixed> &$args) : void
Parameters
- $arg : string
- $longOptions : array<string|int, mixed>
- $opts : array<string|int, mixed>
- $args : array<string|int, mixed>
Tags
parseShortOption()
private
parseShortOption(string $arg, string $shortOptions, array<string|int, mixed> &$opts, array<string|int, mixed> &$args) : void
Parameters
- $arg : string
- $shortOptions : string
- $opts : array<string|int, mixed>
- $args : array<string|int, mixed>