tom             Sun Jun 29 03:43:05 2003 EDT

  Modified files:              
    /phpdoc/en/reference/array/functions        array-reverse.xml ksort.xml 
  Log:
  added php-pi's
  
Index: phpdoc/en/reference/array/functions/array-reverse.xml
diff -u phpdoc/en/reference/array/functions/array-reverse.xml:1.5 
phpdoc/en/reference/array/functions/array-reverse.xml:1.6
--- phpdoc/en/reference/array/functions/array-reverse.xml:1.5   Mon Jun 16 08:03:39 
2003
+++ phpdoc/en/reference/array/functions/array-reverse.xml       Sun Jun 29 03:43:05 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/array.xml, last change in rev 1.62 -->
   <refentry id="function.array-reverse">
    <refnamediv>
@@ -26,9 +26,11 @@
       <title><function>array_reverse</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $input  = array ("php", 4.0, array ("green", "red"));
 $result = array_reverse ($input);
 $result_keyed = array_reverse ($input, TRUE);
+?>
 ]]>
       </programlisting>
       <para>
Index: phpdoc/en/reference/array/functions/ksort.xml
diff -u phpdoc/en/reference/array/functions/ksort.xml:1.5 
phpdoc/en/reference/array/functions/ksort.xml:1.6
--- phpdoc/en/reference/array/functions/ksort.xml:1.5   Mon Jun 16 08:03:39 2003
+++ phpdoc/en/reference/array/functions/ksort.xml       Sun Jun 29 03:43:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
   <refentry id="function.ksort">
    <refnamediv>
@@ -22,12 +22,14 @@
       <title><function>ksort</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
 ksort ($fruits);
 reset ($fruits);
 while (list ($key, $val) = each ($fruits)) {
     echo "$key = $val\n";
 }
+?>
 ]]>
       </programlisting>
       <para>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to