Description
The following code:
php opts.php --foo --bar="hello"
<?php
$longopts = array( 'foo:' );
$options = getopt('', $longopts);
var_dump($options);
Resulted in this output:
array(1) {
["foo"]=>
string(11) "--bar=hello"
}
But I expected this output instead:
array(1) {
["foo"]=>
string(0) ""
}
PHP Version
Operating System
No response