These brackets indicate that these parameters are optional in syntax. These examples are not lines of code, but syntax.
Valid lines of code:
Sizzle(selector, context, results); Sizzle(selector, context); Sizzle(selector); set_userdata($data, $value); set_userdata($data);
But, if we look at @taxicala's answer, we will have a different situation.
foo($param [, $param2 = NULL, $param3 = 1])
Valid lines of code
foo($param, $param2, $param3) foo($param)
but not
foo($param, $param2)
source share