Doc #69705 [Opn->Ver]: [TR]â When this page is translated, $value variable unchanged!
| From: | cmb@php.net | Date: | Mon, 25 May 2015 10:52:34 +0000 |
| Subject: | Doc #69705 [Opn->Ver]: [TR]â When this page is translated, $value variable unchanged! | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12365@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69705&edit=1
ID: 69705
Updated by: cmb@php.net
Reported by: melihozdemir72 at gmail dot com
-Summary: âWhen this page is translated to Turkish language
$value variable unchanged!
+Summary: [TR]â When this page is translated, $value
variable unchanged!
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Translation problem
-Operating System:
+Operating System: N/a
PHP Version: 5.6.9
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-05-25 10:36:29] melihozdemir72 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/control-structures.foreach
---
âWhen this page is translated to Turkish language $value variable name should be as $deÄer,
otherwise array values can not change as it is supposed in the code example.
Test script:
---------------
<?php
$dizi = array(1, 2, 3, 4);
foreach ($dizi as &$deÄer) {
$deÄer = $deÄer * 2;
}
// $dizi artık array(2, 4, 6, 8) olmuÅtur
unset($deÄer); // son eleman da iÅlendiÄine göre gönderimi kaldıralım
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69705&edit=1