ID: 39731
Updated by: [EMAIL PROTECTED]
-Summary: Typo in str_replace() (Portuguese-Brazilian Manual)
Reported By: ro dot jaque at gmail dot com
-Status: Open
+Status: Verified
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
Previous Comments:
------------------------------------------------------------------------
[2006-12-04 15:31:11] ro dot jaque at gmail dot com
Description:
------------
A typo in portuguese-brazilian reference of str_replace().
Instead using:
$saudavel = array("frutas", "vegetais", "fibra");
$saboroso = array("pizza", "cerveja", "sorvete");
$novafrase = str_replace($saudavel, $saboroso, $frase);
The manual lists:
$saldavel = array("frutas", "vegetais", "fibra");
$saboroso = array("pizza", "cerveja", "sorvete");
$novafrase = str_replace($saudavel, $saboroso, $frase);
Reproduce code:
---------------
Check this at
http://br2.php.net/manual/pt_BR/function.str-replace.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39731&edit=1