Doc #54336 [Opn->Csd]: [pt_BR] wrong variables

From: Date: Tue, 22 Mar 2011 08:39:02 +0000
Subject: Doc #54336 [Opn->Csd]: [pt_BR] wrong variables
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6121@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54336&edit=1 ID: 54336 Updated by: aharvey@php.net Reported by: fabio dot system at gmail dot com -Summary: wrong variables +Summary: [pt_BR] wrong variables -Status: Open +Status: Closed Type: Documentation Problem -Package: Documentation problem +Package: Translation problem PHP Version: 5.3.6 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-03-22 09:38:58] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=309538 Log: Fix doc bug #54336 (wrong variables). ------------------------------------------------------------------------ [2011-03-21 14:51:10] fabio dot system at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.arsort#Exemplos --- The variable $fruits isn't declared. $frutas must be used. The variables $key and $val are wrong too. <?php $frutas = array("d" => "limao", "a" => "laranja", "b" => "banana", "c" => "melancia"); arsort($frutas); foreach ($fruits as $key => $val) { echo "$chave = $valor\n"; } ?> Test script: --------------- <?php $frutas = array("d" => "limao", "a" => "laranja", "b" => "banana", "c" => "melancia"); arsort($frutas); foreach ($fruits as $key => $val) { echo "$chave = $valor\n"; } ?> Expected result: ---------------- <?php $frutas = array("d" => "limao", "a" => "laranja", "b" => "banana", "c" => "melancia"); arsort($frutas); foreach ($frutas as $chave => $valor) { echo "$chave = $valor\n"; } ?> Actual result: -------------- "" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54336&edit=1

« previous php.doc.bugs (#6121) next »