|
From: Benjamin C. <bc...@us...> - 2001-09-25 04:13:12
|
Update of /cvsroot/phpbt/phpbt/docs/sgml
In directory usw-pr-cvs1:/tmp/cvs-serv12467/sgml
Modified Files:
devstandards.sgml
Log Message:
Use entities
Index: devstandards.sgml
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/sgml/devstandards.sgml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- devstandards.sgml 2001/09/25 03:30:19 1.3
+++ devstandards.sgml 2001/09/25 04:13:10 1.4
@@ -35,7 +35,7 @@
<programlisting>
if ((condition1) || (condition2)) {
action1;
- } elseif ((condition3) && (condition4)) {
+ } elseif ((condition3) && (condition4)) {
action2;
} else {
defaultaction;
@@ -104,16 +104,16 @@
</para>
<programlisting>
- function connect(&$dsn, $persistent = false) {
+ function connect(&$dsn, $persistent = false) {
if (is_array($dsn)) {
- $dsninfo = &$dsn;
+ $dsninfo = &$dsn;
} else {
$dsninfo = DB::parseDSN($dsn);
}
if (!$dsninfo || !$dsninfo['phptype']) {
- return $this->raiseError();
+ return $this->raiseError();
}
return true;
@@ -151,8 +151,8 @@
<sect2 id="devstandards-phptags" xreflabel="PHP Tags">
<title>PHP Tags</title>
<para>
- Always use <computeroutput><![CDATA[<?php ?>]]></computeroutput>
- to delimit PHP code, not the <computeroutput><![CDATA[<? ?>]]></computeroutput>
+ Always use <computeroutput><?php ?></computeroutput>
+ to delimit PHP code, not the <computeroutput><? ?></computeroutput>
shorthand.
</para>
</sect2>
|