php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73579 [ES] Wrong example #2 initialization
Submitted: 2016-11-22 10:29 UTC Modified: 2021-02-03 17:16 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: PhoneixSegovia at gmail dot com Assigned: julionc (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-11-22 10:29 UTC] PhoneixSegovia at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-encode
---

In the documentation page for json-encode in Spanish you have the following text and code:

  Ejemplo #2 Un ejemplo de json_encode() mostrando algunas de las opciones en acción
  <?php
  $a = array('<foo>',"'bar'",'"baz"','&blong&');
  
  echo "Normal: ",  json_encode($a), "\n";


The initialization of $a must be:

  $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");

So the result can show how 'é' is coded (which it's already done).

Expected result:
----------------
The second example code must start with:

  <?php
  $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");

As in the English version.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-22 12:22 UTC] cmb@php.net
-Summary: Wrong example #2 initialization +Summary: [ES] Wrong example #2 initialization
 [2021-02-03 17:16 UTC] julionc@php.net
-Assigned To: +Assigned To: julionc
 [2021-02-03 17:18 UTC] julionc@php.net
Automatic comment on behalf of julionc
Revision: http://git.php.net/?p=doc/es.git;a=commit;h=159b2eda5b96bf41ffe9b24ecb97ec0aaa552933
Log: Fix #73579[ES] Wrong example #2 initialization
 [2021-02-03 17:18 UTC] julionc@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC