Code: Select all
function $Name($user = NULL)
{
(something working here);
}
Error: syntax error, unexpected '"', expecting '('
HINT: Maybe you forget to put a ; sign at the end of a line.
Error in "C:/wamp/www/nwe/modules/Expire/lib.php"
Line 15
Tried:
Code: Select all
function "$Name"($user = NULL)
{
(something working here);
}
Code: Select all
function {$Name} ($user = NULL)
{
(something working here);
}
Code: Select all
function ".$Name." ($user = NULL)
{
(something working here);
}
ALL FAIL! Is there any other ways?