how can i use string as default value of an argument?
example: error: function my_fun($arg = $string){...... error: function my_fun($arg = '$string'){...... error: function my_fun($arg = "$string"){......
please help!
Read the manual:
http://www.phpbuilder.com/manual/functions.arguments.php
Pay attention to this line in the manual:
The default value must be a constant expression, not (for example) a variable or class member.