Wednesday 28 August 2013

PHP Functions optional parameters

In PHP, an optional parameter of a function can be defined by giving it a default value of null.

function some_function($optional=null) { }

No comments:

Post a Comment