svn: /phpdoc/en/trunk/reference/misc/functions/ eval.xml
| From: | Christoph Michael Becker | Date: | Tue, 18 Aug 2015 23:43:40 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/misc/functions/ eval.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13625@lists.php.net to get a copy of this message | ||
cmb Tue, 18 Aug 2015 23:43:40 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337546
Log:
Teach new developers to use proper coding practices
--
Provided by anonymous 62290 (bernhard@coffeecode.co.za)
Well, let's say we don't want to rely on short_open_tags, and don't assume PHP 5.4+
here.
Changed paths:
U phpdoc/en/trunk/reference/misc/functions/eval.xml
Modified: phpdoc/en/trunk/reference/misc/functions/eval.xml
===================================================================
--- phpdoc/en/trunk/reference/misc/functions/eval.xml 2015-08-18 22:15:54 UTC (rev 337545)
+++ phpdoc/en/trunk/reference/misc/functions/eval.xml 2015-08-18 23:43:40 UTC (rev 337546)
@@ -40,9 +40,9 @@
The code must not be wrapped in opening and closing
<link linkend="language.basic-syntax.phpmode">PHP tags</link>, i.e.
<literal>'echo "Hi!";'</literal> must be passed instead of
- <literal>'<? echo "Hi!"; ?>'</literal>. It is
still possible to leave and
+ <literal>'<?php echo "Hi!"; ?>'</literal>. It
is still possible to leave and
re-enter PHP mode though using the appropriate PHP tags, e.g.
- <literal>'echo "In PHP mode!"; ?>In HTML mode!<? echo
"Back in PHP mode!";'</literal>.
+ <literal>'echo "In PHP mode!"; ?>In HTML mode!<?php echo
"Back in PHP mode!";'</literal>.
</para>
<para>
Apart from that the passed code must be valid PHP. This includes that all statements