
04-08-2007, 03:54 PM
|
|
Banned
|
Join Date: Jan 2007
Posts: 656
|
|
Quote:
Originally Posted by Novo
PHP Code:
this.doActionTest(5.66, "heya!");
function onActionTest(moneyValue, string)
echo (int( temp.moneyValue ) SPC temp.string.substring(2) );
You can't put functions inside the parameters: They are more like a declaration of variables than anything else. Making functions act within the parameters is completely non-conformist and actually goes further to impair the concept of general coding in higher-level languages.
Put it this way: You can't act on the variables themselves because they do not have a name (yet). If anything, the result of that would be the variable name being the outcome of the function itself.
|
You're right. Thanks |
|
|
|