cvs: phpdoc-fr /reference/array/functions array-slice.xml
| From: | Yannick Torres | Date: | Tue, 20 Jan 2009 05:37:09 +0000 |
| Subject: | cvs: phpdoc-fr /reference/array/functions array-slice.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6378@lists.php.net to get a copy of this message | ||
yannick Tue Jan 20 05:37:09 2009 UTC
Modified files:
/phpdoc-fr/reference/array/functions array-slice.xml
Log:
correct bug in editor :/
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-slice.xml?r1=1.25&r2=1.26&diff_format=u
Index: phpdoc-fr/reference/array/functions/array-slice.xml
diff -u phpdoc-fr/reference/array/functions/array-slice.xml:1.25
phpdoc-fr/reference/array/functions/array-slice.xml:1.26
--- phpdoc-fr/reference/array/functions/array-slice.xml:1.25 Tue Jan 20 05:30:53 2009
+++ phpdoc-fr/reference/array/functions/array-slice.xml Tue Jan 20 05:37:08 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.25 $ -->
+<!-- $Revision: 1.26 $ -->
<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
@@ -117,8 +117,12 @@
<?php
$input = array("a", "b", "c", "d", "e");
-$output = array_slice($input, 2); >$output = array_slice($input, -2, 1); >$output =
array_slice($input, 0, 3); >
->>print_r(array_slice($input, 2, -1));
+$output = array_slice($input, 2); // retourne "c", "d", et
"e"
+$output = array_slice($input, -2, 1); // retourne "d"
+$output = array_slice($input, 0, 3); // retourne "a", "b", et
"c"
+
+// notez les clés d'index différentes
+print_r(array_slice($input, 2, -1));
print_r(array_slice($input, 2, -1, true));
?>
]]>