function keyword followed by a valid identifier (function name) that is followed by parameters and finally a function body!
We'll also cover the local-variable
arguments that's available inside every function. It's an array-like object that contains all the arguments passed to the function.
You can convert this object into an array (so that you can use array methods like forEach on it) easily using:
The code above calls
this refering to
arguments inside the method.
Warning: Invalid argument supplied for foreach() in /var/www/cssdeck/app/modules/labs/views/_details.php on line 68