aximbigfan Posted March 8, 2008 Share Posted March 8, 2008 Would it be possible to parse PHP code in a var? For example: $var = "$var1 = 0;"; function test() { <parse $var> echo $var1; Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/95023-parse-code-in-a-var/ Share on other sites More sharing options...
laffin Posted March 8, 2008 Share Posted March 8, 2008 <parse $var> = eval($var); Link to comment https://forums.phpfreaks.com/topic/95023-parse-code-in-a-var/#findComment-486738 Share on other sites More sharing options...
aximbigfan Posted March 8, 2008 Author Share Posted March 8, 2008 THANKS!!!!!!! This does _exactly_ what I want to do!!! Thanks again!! You have really helped me out with this one!!! Chris Link to comment https://forums.phpfreaks.com/topic/95023-parse-code-in-a-var/#findComment-486743 Share on other sites More sharing options...
laffin Posted March 8, 2008 Share Posted March 8, 2008 Anytime Good luck in yer coding Link to comment https://forums.phpfreaks.com/topic/95023-parse-code-in-a-var/#findComment-486775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.