PHP 8.5.0 Beta 1 available for testing

Voting

: max(zero, two)?
(Example: nine)

The Note You're Voting On

edg at Greenberg dot org
4 years ago
> This function will return an array of option / argument pairs, or false on failure.

I note that on my PHP 7.4 installation, getopt returns an empty array for no options specified, not FALSE as the doc states. Although "failure" is rather non-specific. Maybe that doesn't include the condition of no options.

<< Back to user notes page

To Top