svn: /phpdoc/es/trunk/reference/json/functions/ json-decode.xml
| From: | Yago Ferrer | Date: | Thu, 11 Feb 2010 14:15:51 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/json/functions/ json-decode.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-2034@lists.php.net to get a copy of this message | ||
yago Thu, 11 Feb 2010 14:15:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=294886
Log:
Revisando a última versión en Inglés.
Changed paths:
U phpdoc/es/trunk/reference/json/functions/json-decode.xml
Modified: phpdoc/es/trunk/reference/json/functions/json-decode.xml
===================================================================
--- phpdoc/es/trunk/reference/json/functions/json-decode.xml 2010-02-11 12:35:44 UTC (rev 294885)
+++ phpdoc/es/trunk/reference/json/functions/json-decode.xml 2010-02-11 14:15:51 UTC (rev 294886)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 291072 $ -->
-<!-- EN-Revision: 291072 Maintainer: tatai Status: ready -->
+<!-- $Revision: 294397 $ -->
+<!-- EN-Revision: 294397 Maintainer: tatai Status: ready -->
<refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>json_decode</refname>
@@ -149,33 +149,33 @@
<?php
// Codificar los datos.
$json = json_encode(
- array(
- 1 => array(
- 'Inglés' => array(
- 'One',
- 'January'
- ),
- 'Francés' => array(
- 'Une',
- 'Janvier'
- )
- )
- )
+ array(
+ 1 => array(
+ 'Inglés' => array(
+ 'One',
+ 'January'
+ ),
+ 'Francés' => array(
+ 'Une',
+ 'Janvier'
+ )
+ )
+ )
);
// Definimos los errores.
$json_errors = array(
- JSON_ERROR_NONE => 'No ha ocurrido ningún error',
- JSON_ERROR_DEPTH => 'Se ha excedido la máxima profundidad de la pila',
- JSON_ERROR_CTRL_CHAR => 'Error de carácter de control, posiblemente esté mal
codificado',
- JSON_ERROR_SYNTAX => 'Error de sintaxis',
+ JSON_ERROR_NONE => 'No ha ocurrido ningún error',
+ JSON_ERROR_DEPTH => 'Se ha excedido la máxima profundidad de la pila',
+ JSON_ERROR_CTRL_CHAR => 'Error de carácter de control, posiblemente esté mal
codificado',
+ JSON_ERROR_SYNTAX => 'Error de sintaxis',
);
// Mostramos los errores para diferentes profundidades.
foreach(range(4, 3, -1) as $depth) {
- var_dump(json_decode($json, True, $depth));
- echo 'último error: ', $json_errors[json_last_error()], PHP_EOL, PHP_EOL;
- }
+ var_dump(json_decode($json, True, $depth));
+ echo 'último error: ', $json_errors[json_last_error()], PHP_EOL, PHP_EOL;
+ }
?>
]]>
</programlisting>