View Single Post
  #1  
Old 10-04-2011, 08:23 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Function arguments with default values

You know what would be *really* awesome? If you could define a default value to function arguments, Python style.

PHP Code:
function argumentTest(temp.foobartemp.barfoo=true
In the above example, temp.barfoo would be set to true if a value isn't defined in the function caller.

Can haz plz?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote