Skip to content

Commit

Permalink
Keep the getopt() slide, but recommend the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegrunwell committed Sep 20, 2018
1 parent f2d347a commit 1d6e676
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slides/getopt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ array(
```
<!-- .element: class="fragment" -->

[php.net/manual/en/function.getopt.php](http://php.net/manual/en/function.getopt.php)<!-- .element: class="fragment" -->

Note:

* Retrieves options passed via CLI
* Hold-over from C, and most frameworks have their own abstraction for this
* Define expected arguments, returns array of those arguments that are present
- Only options specified will be included
- Flags will be FALSE, but present!
* Best to refer to the manual, as it's needlessly complicated

0 comments on commit 1d6e676

Please sign in to comment.