mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
short_open_tag:
- Can use <?php echo '<?xml version="1.0"'; ?> for xml if on - <?= won't work if off - <?xml works inline if short_open_tag if off git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@87535 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
649707bdfd
commit
c1d2b0f1b4
1 changed files with 16 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.58 $ -->
|
||||
<!-- $Revision: 1.59 $ -->
|
||||
<chapter id="configuration">
|
||||
<title>Configuration</title>
|
||||
|
||||
|
@ -743,7 +743,7 @@ include_path=".;c:\www\phplib"
|
|||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry id="ini.short-open-tag">
|
||||
<term>
|
||||
<parameter>short_open_tag</parameter>
|
||||
|
@ -753,9 +753,20 @@ include_path=".;c:\www\phplib"
|
|||
<para>
|
||||
Tells whether the short form (<userinput><? ?></userinput>)
|
||||
of PHP's open tag should be allowed. If you want to use PHP in
|
||||
combination with XML, you have to disable this option. If
|
||||
disabled, you must use the long form of the open tag
|
||||
(<userinput><?php ?></userinput>).</para>
|
||||
combination with XML, you can disable this option in order to
|
||||
use (<userinput><?xml ?></userinput> inline. Otherwise, you
|
||||
can print it with PHP, for example: <userinput><?php echo '<?xml
|
||||
version="1.0"'; ?></userinput>. Also if disabled, you must use the
|
||||
long form of the PHP open tag (<userinput><?php ?></userinput>).
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This directive also affects the shorthand <userinput><?=</userinput>,
|
||||
which is identical to <userinput><? echo</userinput>. Use of this
|
||||
shortcut requires <systemitem role="directive">short_open_tag</systemitem>
|
||||
to be on.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue