Code
Result

PHP code example: getopt

Gets options from the command line argument list. See documentation.

You can try this function yourself. Just edit the code and on "Run" to see the result.