cvs: phpdoc-ro /reference/json/functions json-decode.xml json-encode.xml
| From: | Gabriel PREDA | 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
-->