Skip to content

Commit a25f9b6

Browse files
committed
[elseif.xml] Fixed syntax errors in more examples
php/doc-en@2258375
1 parent 1e88210 commit a25f9b6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

language/control-structures/elseif.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: bbaf4fea6946bf6d0b67573d5f2f96c5a2c5d678 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 22583751fbfdaa3eaa41aeb6470d1343f5cb2c78 Maintainer: takagi Status: ready -->
44

55
<sect1 xml:id="control-structures.elseif" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>elseif/else if</title>
@@ -69,8 +69,14 @@ if ($a > $b):
6969
else if ($a == $b): // コンパイル不能
7070
echo "The above line causes a parse error.";
7171
endif;
72+
]]>
73+
</programlisting>
74+
</informalexample>
7275

73-
76+
<informalexample>
77+
<programlisting role="php">
78+
<![CDATA[
79+
<?php
7480
/* 正しい方法 */
7581
if ($a > $b):
7682
echo $a." is greater than ".$b;

0 commit comments

Comments
 (0)