Well, with PHP you can do the following.... <?php function someFunction($messageString = null) { if($messageString != null) { //Do something } else { //Do something else with user defined $messageString } } ?> Is this not possible? Maybe by specifing a default value?