Thread: String Parsing
View Single Post
  #6  
Old 03-20-2008, 02:14 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
I believe he's trying to do something like so:

PHP Code:
temp.var1 4;
temp.str "temp.var1 + 1";
temp.value int(temp.str);

echo(
temp.value);

// he wants it to return 5, but it returns -1, naturally. 
Would be interesting to figure this out. Graal needs an eval() function.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote