Thread: Editing params
View Single Post
  #6  
Old 04-08-2007, 03:54 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Novo View Post
PHP Code:
this.doActionTest(5.66"heya!");
function 
onActionTest(moneyValuestring)
  echo (
inttemp.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
Reply With Quote