Jump to content

[SOLVED] Code execute from string


Dat

Recommended Posts

How can I execute php coding in a string. Because once I replace all variable within my template the string will contain: "<?php if($something) { echo $this; } ?>

 

So after replacing all variables with values how can I execute the php codes in the string before printing the final result?

Is there a php function for this, because i seem to find it on the php site.

Link to comment
https://forums.phpfreaks.com/topic/105541-solved-code-execute-from-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.