How do these arguments work? [, int $status_code= 500 ] ? |
Narf is correct. In docs, [] as a parameter denote an optional parameter (also why the comma is inside the [] because if you use the optional parameter, you need the comma to separate parameters).
This is how the official PHP docs (and most others) are written. Example: http://php.net/manual/en/function.html-e...decode.php |
Messages In This Thread |
How do these arguments work? [, int $status_code= 500 ] ? - by lexxtoronto - 03-10-2015, 09:34 AM
RE: How do these arguments work? [, int $status_code= 500 ] ? - by frocco - 03-10-2015, 11:40 AM
RE: How do these arguments work? [, int $status_code= 500 ] ? - by lexxtoronto - 03-10-2015, 12:32 PM
RE: How do these arguments work? [, int $status_code= 500 ] ? - by Narf - 03-11-2015, 05:19 AM
RE: How do these arguments work? [, int $status_code= 500 ] ? - by lexxtoronto - 03-18-2015, 01:58 PM
RE: How do these arguments work? [, int $status_code= 500 ] ? - by CroNiX - 03-18-2015, 02:21 PM
|