php - Why do some array parameters have a comma after opening parentheses? -
what syntax i've seen documentations applying, example:
sizzle( string selector[, domnode context[, array results]] )
set_userdata($data[, $value = null])
basically, means, parameters inside []
optional. dont need pass in order make function call work:
foo($param [, $param2 = null, $param3 = 1])
$param1
, $param2
optional, $param mandatory.
Comments
Post a Comment