I’m not sure why I haven’t posted this yet. The following code block is (one way) of simulating named parameters in PHP for class method calls. It utilizes PHP’s magic method __call and takes advantage of PHP 5’s Reflection API for determining default values of parameters not passed.
Parameters can be passed two ways:
$obj->method(array(‘key’ [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.