[PHP] Default argument values

2003-02-17 Thread neko
Hey All, I've been trying to write a function that accepts multiple optional parameters, some of which are ints. The function signature looks like this: function blahBlah($fromDate, $toDate = 0, $limit = 20, $limitNodeType = null) I've been reading up here: http://www.php.net/manual/en/functi

[PHP] Default argument values for functions

2002-12-16 Thread rolf vreijdenberger
I want to use the value of a variable that is defined in a text.inc.php file as a default argumant value for a function. $t_email_afzender_rtg It doesn't work !!! I tried it without quotes and with. If I just put a string value in it it works, but that defeats the purpose of my inc.php file! So thi