Thread: Regarding Flags
View Single Post
  #2  
Old 03-30-2012, 12:56 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
First of all, it sounds like a boolean (based on the name of the variable), so either choose a less misleading name or just do if (variable).

I think you're trying to check the value of a variable whose name you don't know beforehand? This should work:

PHP Code:
temp.varName "foo";
echo(
clientr.(@ temp.varName)); 
I've always used an @ there and thought it was unnecessary, but a quick test reveals that apparently it is necessary.
__________________
Reply With Quote