395
edits
Philosopher (talk | contribs) m (→Anonymous function arguments: remove my old comments. P.S.: Hooray seems to be in a SCNR attitude today ;), and yet I say... SCNR :lol:) |
Philosopher (talk | contribs) m (→Default values for function arguments: python too!) |
||
Line 102: | Line 102: | ||
== Default values for function arguments == | == Default values for function arguments == | ||
Function arguments can have default values, as in C++. Note that the default value must be a | Function arguments can have default values, as in C++ or Python. Note that the default value must be a constant (number, string, function, or nil) and not a mutable composite object (list, hash). | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> |
edits