Contributions are ready for review

From: Date: Mon, 05 May 2014 12:00:02 +0000
Subject: Contributions are ready for review
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969384948@lists.php.net to get a copy of this message
Hello PHP EN Documentation team, There are contributions within the online editor queue for this language. Please review, then commit or delete these patches. Patches for review : ----------------------- Modified: en/reference/strings/functions/trim.xml By: anonymous on 2014-04-22 20:06:01 =================================================================== --- en/reference/strings/functions/trim.xml +++ en/reference/strings/functions/trim.xml @@ -23,37 +23,37 @@ <itemizedlist> <listitem> <simpara> - " " (<acronym>ASCII</acronym> <literal>32</literal> + " " (<abbr>ASCII</abbr> <literal>32</literal> (<literal>0x20</literal>)), an ordinary space. </simpara> </listitem> <listitem> <simpara> - "t" (<acronym>ASCII</acronym> <literal>9</literal> + "t" (<abbr>ASCII</abbr> <literal>9</literal> (<literal>0x09</literal>)), a tab. </simpara> </listitem> <listitem> <simpara> - "n" (<acronym>ASCII</acronym> <literal>10</literal> + "n" (<abbr>ASCII</abbr> <literal>10</literal> (<literal>0x0A</literal>)), a new line (line feed). </simpara> </listitem> <listitem> <simpara> - "r" (<acronym>ASCII</acronym> <literal>13</literal> + "r" (<abbr>ASCII</abbr> <literal>13</literal> (<literal>0x0D</literal>)), a carriage return. </simpara> </listitem> <listitem> <simpara> - " " (<acronym>ASCII</acronym> <literal>0</literal> + " " (<abbr>ASCII</abbr> <literal>0</literal> (<literal>0x00</literal>)), the <literal>NUL</literal>-byte. </simpara> </listitem> <listitem> <simpara> <!-- not v, since not supported by PHP --> - "x0B" (<acronym>ASCII</acronym> <literal>11</literal> + "x0B" (<abbr>ASCII</abbr> <literal>11</literal> (<literal>0x0B</literal>)), a vertical tab. </simpara> </listitem> => Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=53479 => Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=53479 ------------------------------------------------------------------ Modified: en/language/basic-syntax.xml By: Laurent Lyaudet on 2014-05-01 07:05:51 =================================================================== --- en/language/basic-syntax.xml +++ en/language/basic-syntax.xml @@ -122,7 +122,7 @@ <?= expression ?> This is a shortcut for "<? echo expression ?>" 4. <% echo 'You may optionally use ASP-style tags'; %> - <%= $variable; # This is a shortcut for "<% echo . . ." %> + <%= $variable; %> This is a shortcut for "<% echo $variable; %>" ]]> </programlisting> </example> => Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=53574 => Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=53574 ------------------------------------------------------------------ Modified: en/reference/array/functions/array-reduce.xml By: Adrien Crivelli on 2014-05-02 09:19:05 =================================================================== --- en/reference/array/functions/array-reduce.xml +++ en/reference/array/functions/array-reduce.xml @@ -116,32 +116,27 @@ <programlisting role="php"> <![CDATA[ <?php -function rsum($v, $w) +function sum($carry, $item) { - $v += $w; - return $v; + $carry += $item; + return $carry; } -function rmul($v, $w) +function multiplication($carry, $item) { - $v *= $w; - return $v; + $carry *= $item; + return $carry; } $a = array(1, 2, 3, 4, 5); $x = array(); -$b = array_reduce($a, "rsum"); -$c = array_reduce($a, "rmul", 10); -$d = array_reduce($x, "rsum", "No data to reduce"); + +var_dump(array_reduce($a, "sum")); // int(15) +var_dump(array_reduce($a, "multiplication", 10)); // int(1200), because: 10*1*2*3*4*5 +var_dump(array_reduce($x, "sum", "No data to reduce")); // string(17) "No data to reduce" ?> ]]> </programlisting> - <para> - This will result in <varname>$b</varname> containing - <literal>15</literal>, <varname>$c</varname> containing - <literal>1200</literal> (= 10*1*2*3*4*5), and <varname>$d</varname> - containing <literal>No data to reduce</literal>. - </para> </example> </para> </refsect1> => Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=53580 => Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=53580 ------------------------------------------------------------------ Modified: en/reference/math/functions/min.xml By: Adrien Crivelli on 2014-05-02 11:27:05 =================================================================== --- en/reference/math/functions/min.xml +++ en/reference/math/functions/min.xml @@ -117,8 +117,8 @@ <![CDATA[ <?php // PHP compares variable as boolean when one of operand is boolean. -var_dump(min(-100,-10, NULL, 10, 100); // NULL - (bool)NULL < (bool)-100 is FALSE < TRUE -var_dump(min(-100,-10, FALSE, 10, 100); // FALSE - (bool)FALSE < (bool)-100 is FALSE < TRUE +var_dump(min(-100,-10, NULL, 10, 100)); // NULL - (bool)NULL < (bool)-100 is FALSE < TRUE +var_dump(min(-100,-10, FALSE, 10, 100)); // FALSE - (bool)FALSE < (bool)-100 is FALSE < TRUE ?> ]]> </programlisting> => Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=53581 => Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=53581 ------------------------------------------------------------------ -- https://edit.php.net/ This email is send automatically by the Php Docbook Online Editor.

« previous php.doc (#969384948) next »