cvs: phpdoc-ja /reference/json .cvsignore reference.xml /reference/json/functions json_decode.xml json_encode.xml
| From: | TAKAGI Masahiro | Date: | Sat, 05 Aug 2006 21:49:03 +0000 |
| Subject: | cvs: phpdoc-ja /reference/json .cvsignore reference.xml /reference/json/functions json_decode.xml json_encode.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1591@lists.php.net to get a copy of this message | ||
takagi Sat Aug 5 21:49:03 2006 UTC
Added files:
/phpdoc-ja/reference/json/functions json_encode.xml json_decode.xml
/phpdoc-ja/reference/json reference.xml .cvsignore
Log:
added japanese manual.
http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/json/functions/json_encode.xml?view=markup&rev=1.1
Index: phpdoc-ja/reference/json/functions/json_encode.xml
+++ phpdoc-ja/reference/json/functions/json_encode.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready -->
<refentry id="function.json-encode">
<refnamediv>
<refname>json_encode</refname>
<refpurpose>å¤ã JSON å½¢å¼ã«ãã¦è¿ã</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>
<parameter>value</parameter> ã JSON
å½¢å¼ã«ããæååãè¿ãã¾ãã
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>value</parameter></term>
<listitem>
<para>
ã¨ã³ã³ã¼ãããå¤ã
<type>resource</type>
å以å¤ã®ä»»æã®åãæå®ã§ãã¾ãã
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
æåããå ´åã«ãJSON
ã¨ã³ã³ã¼ããããæååãè¿ãã¾ãã
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><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
-->
http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/json/functions/json_decode.xml?view=markup&rev=1.1
Index: phpdoc-ja/reference/json/functions/json_decode.xml
+++ phpdoc-ja/reference/json/functions/json_decode.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready -->
<refentry id="function.json-decode">
<refnamediv>
<refname>json_decode</refname>
<refpurpose>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>
JSON
ã¨ã³ã³ã¼ããããæååãåãåããããã
PHP ã®å¤æ°ã«å¤æãã¾ãã
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>json</parameter></term>
<listitem>
<para>
ãã³ã¼ã対象ã¨ãªã
<parameter>json</parameter> æååã
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>assoc</parameter></term>
<listitem>
<para>
&true;
ã®å ´åã¯ãè¿ããããªãã¸ã§ã¯ãã飿³é
åå½¢å¼ã«ãªãã¾ãã
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
ãªãã¸ã§ã¯ããè¿ãã¾ãããããã¯ããªãã·ã§ã³ã®ãã©ã¡ã¼ã¿
<parameter>assoc</parameter> ã &true; ã®å ´åã«ã¯ã
飿³é
åãè¿ãã¾ãã
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>json_decode</function> ã®ä¾</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="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-ja/reference/json/reference.xml?view=markup&rev=1.1
Index: phpdoc-ja/reference/json/reference.xml
+++ phpdoc-ja/reference/json/reference.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready -->
<reference id="ref.json">
<title>JSON 颿°</title>
<titleabbrev>JSON</titleabbrev>
<partintro>
<section id="json.intro">
&reftitle.intro;
<para>
ãã®æ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãJavaScript Object Notation
(JSON)
ã¨ãããã¼ã¿äº¤æå½¢å¼ãå®è£
ãããã®ã§ãããã³ã¼ãå¦çã¯ã
Douglas Crockford ã«ãã JSON_checker
ãåºã«ãã¦ãã¾ãã
</para>
</section>
<section id="json.requirements">
&reftitle.required;
<para>
PHP 5.2.0 以éãJSON
æ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ããã©ã«ãã§ PHP
ã«çµã¿è¾¼ã¾ãã¾ãã
</para>
<para>
&pecl.info;
<ulink url="&url.pecl.package;json">&url.pecl.package;json</ulink>
</para>
</section>
</partintro>
&reference.json.functions;
</reference>
<!-- 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-ja/reference/json/.cvsignore?view=markup&rev=1.1
Index: phpdoc-ja/reference/json/.cvsignore
+++ phpdoc-ja/reference/json/.cvsignore
functions.xml