cvs: phpdoc-ro /reference/json/functions json-decode.xml json-encode.xml

From: Date: Thu, 25 Oct 2007 20:39:28 +0000
Subject: cvs: phpdoc-ro /reference/json/functions json-decode.xml json-encode.xml
Groups: php.doc.ro 
Request: Send a blank email to doc-ro+get-302@lists.php.net to get a copy of this message
radical Thu Oct 25 20:39:28 2007 UTC Added files: /phpdoc-ro/reference/json/functions json-decode.xml json-encode.xml Log: Translated json functions into romanian. English revision was 1.3 Also converted files to UTF-8 enconding. http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/json/functions/json-decode.xml?view=markup&rev=1.1 Index: phpdoc-ro/reference/json/functions/json-decode.xml +++ phpdoc-ro/reference/json/functions/json-decode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: radical Status: ok --> <refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>json_decode</refname> <refpurpose>Converteşte într-o variabilă un şir reprezentat JSON</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>json_decode</methodname> <methodparam><type>string</type><parameter>json</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>assoc</parameter></methodparam> </methodsynopsis> <para> Un şir de caractere reprezentat JSON şi îl converteşte într-o variabilă . </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>json</parameter></term> <listitem> <para> Şirul (<type>string</type>) reprezentat <parameter>json</parameter> care trebuie convertit. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>assoc</parameter></term> <listitem> <para> Dacă specificaţi &true;, obiectul va fi convertit într-un <type>array<-type> asociativ. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Întoarce un <type>object</type> sau dacă parametrul opţional <parameter>assoc</parameter> este &true;, un <type>array</type> asociativ. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>json_decode</function> exemplu</title> <programlisting role="php"> <![CDATA[ <?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; var_dump(json_decode($json)); var_dump(json_decode($json, true)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ object(stdClass)#1 (5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) } array(5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) } ]]> </screen> </example> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; <caution> <para> Această funcţie va întoarce &false; dacă datele reprezentate JSON s-ar converti într-un <type>array</type> sau <type>object</type> cu mai mult de 127 elemente. </para> </caution> </refsect1> <refsect1 role="changelog"> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.2.3</entry> <entry>Limita de imbricare a fost mărită de la 20 la 128.</entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>json_encode</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/json/functions/json-encode.xml?view=markup&rev=1.1 Index: phpdoc-ro/reference/json/functions/json-encode.xml +++ phpdoc-ro/reference/json/functions/json-encode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: radical Status: ok --> <refentry xml:id="function.json-encode" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>json_encode</refname> <refpurpose>Întoarce o reprezentare JSON pentru valoarea dată</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>json_encode</methodname> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> Întoarce un şir care conţine o reprezentare JSON pentru valoarea (<parameter>value</parameter>) dată. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>value</parameter></term> <listitem> <para> Valoarea (<parameter>value</parameter>) care trebuie reprezentată JSON. Poate fi de orice tip cu excepţia <type>resource</type>. </para> <para> Această funcţie acceptă numai date codate în UTF-8. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Întoarce un şir (<type>string</type>) reprezentat JSON dacă reuşeşte. </para> </refsect1> <refsect1 role="changelog"> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.2.1</entry> <entry> A fost adăugat suport pentru tipuri JSON elementare. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Un exemplu <function>json_encode</function> </title> <programlisting role="php"> <![CDATA[ <?php $arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); echo json_encode($arr); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ {"a":1,"b":2,"c":3,"d":4,"e":5} ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>json_decode</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.ro (#302) next »