PHP » GoLang |
login |
register |
about
|
eval(PHP 4, PHP 5, PHP 7) eval — Evaluate a string as PHP code Description
Evaluates the given Caution
The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand. Parameters
Return Values
eval() returns Examples
Example #1 eval() example - simple text merge
<?php The above example will output: This is a $string with my $name in it. This is a cup with my coffee in it. Notes
Tip
As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for example).
|
more
Recently updated
more
Most requested
more
Last requests
|