Gen. partnerAlgotech

PHP function getopt()

Gets options from the command line argument list

|
September 11, 2019

Availability in versions: PHP 4.3.0

Gets options from the command line argument list

Parameters

Parameter Data type Default value Note
$options string not
$longopts array null,
$optind int null

Return values

array

This function will return an array of option / argument pairs or false on failure.

Additional resources

Official getopt documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.