bigdspbandj Posted April 22, 2008 Share Posted April 22, 2008 What is the correct syntax when part of my method call is a variable? DatabaseObject_$VARIABLE_ResidentData::LoginFailure The class name is dependent on who is accessing the application. The class is DatabaseObject_VARIABLENAME_ResidentData. The method exists, and it works when I replaced the variable name and hardcode the actual class name. Link to comment https://forums.phpfreaks.com/topic/102402-need-correct-method-calling-syntax/ Share on other sites More sharing options...
DarkWater Posted April 22, 2008 Share Posted April 22, 2008 I don't think you can use variables in method names, but I'm not sure; I've never had to. Link to comment https://forums.phpfreaks.com/topic/102402-need-correct-method-calling-syntax/#findComment-524351 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.