What is this syntax I've seen some documentations applying, for example:
Jquery Sizzle
Sizzle( String selector[, DOMNode context[, Array results]] )
Codeiginiter 3
set_userdata($data[, $value = NULL])
Basically, what this means, is that all parameters inside the []
are optional. You dont need to pass anything in order to make the function call work:
foo($param [, $param2 = NULL, $param3 = 1])
$param1
and $param2
are optional, $param is mandatory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With