php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75331
Patch patch-1507447306.patch revision 2017-10-09 12:55 UTC by thiago dot oak at gmail dot com

Patch patch-1507447306.patch for Translation problem Bug #75331

Patch version 2017-10-09 12:55 UTC

Return to Bug #75331 | Download this patch
Patch Revisions:

Developer: thiago.oak@gmail.com

--- pt_BR/reference/strings/functions/substr.xml
+++ pt_BR/reference/strings/functions/substr.xml
@@ -81,7 +81,7 @@
        (após a posicão de inicio ter sido calculada quando
        <parameter>start</parameter> for negativo). Se
        <parameter>start</parameter> denota uma posição além da truncagem,
-       uma string vazia será retornada.
+       será retornado &false;.
       </para>
       <example>
        <title>Usando um <parameter>length</parameter> negativo</title>
@@ -90,7 +90,7 @@
 <?php
 $rest = substr("abcdef", 0, -1);  // retorna "abcde"
 $rest = substr("abcdef", 2, -1);  // retorna "cde"
-$rest = substr("abcdef", 4, -4);  // retorna ""
+$rest = substr("abcdef", 4, -4);  // retorna false
 $rest = substr("abcdef", -3, -1); // retorna "de"
 ?>
 ]]>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 00:01:27 2024 UTC