Doc #73579 [Asn->Csd]: [ES] Wrong example #2 initialization

From: Date: Wed, 03 Feb 2021 17:18:02 +0000
Subject: Doc #73579 [Asn->Csd]: [ES] Wrong example #2 initialization
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18493@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73579&edit=1 ID: 73579 Updated by: julionc@php.net Reported by: PhoneixSegovia at gmail dot com Summary: [ES] Wrong example #2 initialization -Status: Assigned +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: Irrelevant Assigned To: julionc Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2016-11-22 10:29:39] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73579&edit=1

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