cvs: phpdoc-fr /reference/apache/functions apache-setenv.xml /reference/apd/functions apd-set-pprof-trace.xml /reference/array/functions
array-slice.xml

From: Date: Tue, 20 Jan 2009 05:30:55 +0000
Subject: cvs: phpdoc-fr /reference/apache/functions apache-setenv.xml /reference/apd/functions apd-set-pprof-trace.xml /reference/array/functions
array-slice.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6377@lists.php.net to get a copy of this message
yannick Tue Jan 20 05:30:55 2009 UTC Modified files: /phpdoc-fr/reference/apache/functions apache-setenv.xml /phpdoc-fr/reference/apd/functions apd-set-pprof-trace.xml /phpdoc-fr/reference/array/functions array-slice.xml Log: sync with EN # new editor tools http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-setenv.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-setenv.xml diff -u phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.17 phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.18 --- phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.17 Sat Nov 29 19:07:29 2008 +++ phpdoc-fr/reference/apache/functions/apache-setenv.xml Tue Jan 20 05:30:52 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-setenv" xmlns="http://docbook.org/ns/docbook"> @@ -15,7 +15,7 @@ <type>bool</type><methodname>apache_setenv</methodname> <methodparam><type>string</type><parameter>variable</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter><initializer>false</initializer></methodparam> </methodsynopsis> <para> <function>apache_setenv</function> définit la valeur de la variable d'environnement http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml diff -u phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml:1.12 phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml:1.13 --- phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml:1.12 Fri May 23 11:37:21 2008 +++ phpdoc-fr/reference/apd/functions/apd-set-pprof-trace.xml Tue Jan 20 05:30:53 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apd-set-pprof-trace" xmlns="http://docbook.org/ns/docbook"> @@ -13,7 +13,7 @@ <methodsynopsis> <type>string</type><methodname>apd_set_pprof_trace</methodname> <methodparam choice="opt"><type>string</type><parameter>dump_directory</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>fragment</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>fragment</parameter><initializer>"pprof"</initializer></methodparam> </methodsynopsis> <para> Démarre la session de déboguage dans le dossier http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-slice.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-fr/reference/array/functions/array-slice.xml diff -u phpdoc-fr/reference/array/functions/array-slice.xml:1.24 phpdoc-fr/reference/array/functions/array-slice.xml:1.25 --- phpdoc-fr/reference/array/functions/array-slice.xml:1.24 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/array-slice.xml Tue Jan 20 05:30:53 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.array-slice" xmlns="http://docbook.org/ns/docbook"> @@ -15,7 +15,7 @@ <methodparam><type>array</type><parameter>array</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter><initializer>false</initializer></methodparam> </methodsynopsis> <para> <function>array_slice</function> retourne une série d' @@ -117,12 +117,8 @@ <?php $input = array("a", "b", "c", "d", "e"); -$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)); +$output = array_slice($input, 2); >$output = array_slice($input, -2, 1); >$output = array_slice($input, 0, 3); > +>>print_r(array_slice($input, 2, -1)); print_r(array_slice($input, 2, -1, true)); ?> ]]>

« previous php.doc.fr (#6377) next »