rioter Sun Feb 1 09:12:11 2004 EDT
Modified files:
/phpdoc/en/reference/strings/functions ord.xml
Log:
added the $str var to the example
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/ord.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/strings/functions/ord.xml
diff -u phpdoc/en/reference/strings/functions/ord.xml:1.3
phpdoc/en/reference/strings/functions/ord.xml:1.4
--- phpdoc/en/reference/strings/functions/ord.xml:1.3 Fri May 30 12:47:59 2003
+++ phpdoc/en/reference/strings/functions/ord.xml Sun Feb 1 09:12:10 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.ord">
<refnamediv>
@@ -21,7 +21,9 @@
<programlisting role="php">
<![CDATA[
<?php
-if (ord($str) == 10) {
+$str = "\n";
+if (ord($str) == 10)
+{
echo "The first character of \$str is a line feed.\n";
}
?>