eval

PHP 4, PHP 5, PHP 7, PHP 8
eval - Evaluate a string as PHP code
Manual
Code Examples

Example #1 eval example - simple text merge

Result: This is a $string with my $name in it. This is a cup with my coffee in it.
PHP Version: