[PHP-DOC] cvs: phpdoc /en/reference/array/functions array-splice.xml array-unique.xml

2003-02-06 Thread Damien Seguy
damsFri Feb  7 00:07:51 2003 EDT

  Modified files:  
/phpdoc/en/reference/array/functionsarray-splice.xml 
array-unique.xml 
  Log:
  upgrade example
  
Index: phpdoc/en/reference/array/functions/array-splice.xml
diff -u phpdoc/en/reference/array/functions/array-splice.xml:1.5 
phpdoc/en/reference/array/functions/array-splice.xml:1.6
--- phpdoc/en/reference/array/functions/array-splice.xml:1.5Tue Sep 10 23:31:41 
2002
+++ phpdoc/en/reference/array/functions/array-splice.xmlFri Feb  7 00:07:50 
+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.14 --
   refentry id=function.array-splice
refnamediv
@@ -61,16 +61,53 @@
 /para
 para
  The following equivalences hold:
- programlisting role=php
-![CDATA[
-array_push ($input, $x, $y) array_splice ($input, count ($input), 0,
- array ($x, $y))
-array_pop ($input)  array_splice ($input, -1)
-array_shift ($input)array_splice ($input, 0, 1)
-array_unshift ($input, $x, $y)  array_splice ($input, 0, 0, array ($x, $y))
-$input[$x] = $y array_splice ($input, $x, 1, $y)
-]]
- /programlisting
+   table
+titlefunctionarray_splice/function equivalents/title
+tgroup cols=2
+ tbody
+  row
+   entry
+array_push($input, $x, $y) 
+   /entry
+   entry
+array_splice($input, count($input), 0, array($x, $y))
+   /entry
+  /row
+  row
+   entry
+array_pop($input) 
+   /entry
+   entry
+array_splice($input, -1)
+   /entry
+  /row
+  row
+   entry
+array_shift($input)
+   /entry
+   entry
+array_splice($input, -1)
+   /entry
+  /row
+  row
+   entry
+array_unshift($input, $x, $y)
+   /entry
+   entry
+array_splice($input, 0, 0, array($x, $y))
+   /entry
+  /row
+  row
+   entry
+$a[$x] = $y
+   /entry
+   entry
+array_splice($input, $x, 1, $y)
+   /entry
+  /row
+ /tbody  
+/tgroup
+   /table
 /para
 para
  Returns the array consisting of removed elements.
Index: phpdoc/en/reference/array/functions/array-unique.xml
diff -u phpdoc/en/reference/array/functions/array-unique.xml:1.5 
phpdoc/en/reference/array/functions/array-unique.xml:1.6
--- phpdoc/en/reference/array/functions/array-unique.xml:1.5Wed Feb  5 03:21:21 
2003
+++ phpdoc/en/reference/array/functions/array-unique.xmlFri Feb  7 00:07:51 
+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.array-unique
refnamediv
@@ -43,9 +43,13 @@
 $input = array (a = green, red, b = green, blue, red);
 $result = array_unique ($input);
 print_r($result);
-
-/* Which outputs:
-
+?
+]]
+  /programlisting
+  para
+   Cela va afficher : 
+   screen role=php
+![CDATA[
 Array
 (
 [a] = green
@@ -67,14 +71,17 @@
 $input = array (4,4,3,4,3,3);
 $result = array_unique ($input);
 var_dump($result);
-
-/* Which outputs:
-
+?
+]]
+  /programlisting
+  para
+   This script will output:
+   screen role=php
+![CDATA[
 array(2) {
   [0] = int(4)
   [2] = string(1) 3
 }
-*/
 ?
 ]]
   /programlisting



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




Re: [PHP-DOC] cvs: phpdoc /en/reference/array/functions array-splice.xml array-unique.xml

2003-02-06 Thread pollita
Damien,

  Did you run 'make test' on this?  It's got several syntactic errors.

-Pollita

  +   Cela va afficher :

 I'm convinced it's your life mission to force
 English speakers to learn French. :)

 Regards,
 Philip




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