|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-04-24 10:23 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
Function calls with a variable name work as exspected when called by a simple expression: ----- <?php function name_lang() { printf("I am a function\n"); } $x = "name"; $y = "_lang"; $z = $x.$y; $z(); Content-type: text/html I am a function ----- But PHP fails to parse the () function call operator in the following environment: ----- ($x.$y)(); <br> <b>Parse error</b>: parse error in <b>-</b> on line <b>11</b><br> -----