mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added some words about how to mix HTML and PHP code within eval
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@213639 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
78d264e960
commit
1de8712abe
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- splitted from ./en/functions/misc.xml, last change in rev 1.58 -->
|
||||
<refentry id="function.eval">
|
||||
<refnamediv>
|
||||
|
@ -16,7 +16,11 @@
|
|||
<function>eval</function> evaluates the string given in
|
||||
<parameter>code_str</parameter> as PHP code. Among other things,
|
||||
this can be useful for storing code in a database text field for
|
||||
later execution.
|
||||
later execution. <parameter>code_str</parameter> does not have to
|
||||
start with or contain <link linkend="language.basic-syntax.phpmode">
|
||||
PHP Opening tags</link>. If you want your given string to be
|
||||
evaluated like regular PHP code with opening tags you can prepend
|
||||
<parameter>code_str</parameter> with a closing tag.
|
||||
</simpara>
|
||||
<simpara>
|
||||
There are some factors to keep in mind when using
|
||||
|
|
Loading…
Reference in a new issue