cvs: phpdoc-kr / language-snippets.ent /appendices comparisons.xml /language expressions.xml types.xml /reference/var/functions floatval.xml
gettype.xml intval.xml is-float.xml is-int.xml is-null.xml is-numeric.xml is-object.xml is-string.xml print-r.xml serialize.xml settype.xml strval.xml
unserialize.xml unset.xml var-export.xml

From: Date: Wed, 12 Nov 2008 10:55:24 +0000
Subject: cvs: phpdoc-kr / language-snippets.ent /appendices comparisons.xml /language expressions.xml types.xml /reference/var/functions floatval.xml
gettype.xml intval.xml is-float.xml is-int.xml is-null.xml is-numeric.xml is-object.xml is-string.xml print-r.xml serialize.xml settype.xml strval.xml
unserialize.xml unset.xml var-export.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-766@lists.php.net to get a copy of this message
progcom Wed Nov 12 10:55:24 2008 UTC Modified files: /phpdoc-kr language-snippets.ent /phpdoc-kr/appendices comparisons.xml /phpdoc-kr/language expressions.xml types.xml /phpdoc-kr/reference/var/functions floatval.xml gettype.xml intval.xml is-float.xml is-int.xml is-null.xml is-numeric.xml is-object.xml is-string.xml print-r.xml serialize.xml settype.xml strval.xml unserialize.xml unset.xml var-export.xml Log: sync

http://cvs.php.net/viewvc.cgi/phpdoc-kr/language-snippets.ent?r1=1.61&r2=1.62&diff_format=u Index: phpdoc-kr/language-snippets.ent diff -u phpdoc-kr/language-snippets.ent:1.61 phpdoc-kr/language-snippets.ent:1.62 --- phpdoc-kr/language-snippets.ent:1.61 Mon Nov 10 20:51:22 2008 +++ phpdoc-kr/language-snippets.ent Wed Nov 12 10:55:24 2008 @@ -73,9 +73,9 @@ 있습니다. 자세한 내용은 매뉴얼의 &link.superglobals; 섹션을 읽어보십시오.</para></note>'> -<!ENTITY note.uses-ob '<note><para>이 함수는 내부적으로 이 인수로 -출력 버퍼링을 사용합니다. 그래서 <function>ob_start</function> 콜백 함수 -안에서 사용할 수 없습니다.</para></note>'> +<!ENTITY note.uses-ob '<note><para>이 함수를 특정 인수와 함께 사용할 때, +내부적으로 출력 버퍼링을 사용합니다. 그러므로, <function>ob_start</function> +콜백 함수 안에서는 사용할 수 없습니다.</para></note>'> <!ENTITY note.filesystem-time-res '<note><para>시간 정밀도는 각각 파일 시스템에 따라 다를 수 있습니다.</para></note>'> http://cvs.php.net/viewvc.cgi/phpdoc-kr/appendices/comparisons.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/appendices/comparisons.xml diff -u phpdoc-kr/appendices/comparisons.xml:1.6 phpdoc-kr/appendices/comparisons.xml:1.7 --- phpdoc-kr/appendices/comparisons.xml:1.6 Mon Nov 10 20:57:26 2008 +++ phpdoc-kr/appendices/comparisons.xml Wed Nov 12 10:55:24 2008 @@ -7,7 +7,7 @@ 다음 테이블은 PHP <link linkend="language.types">타입</link> 과 느슨한 비교와 엄격한 비교를 위한 <link linkend="language.operators.comparison">비교 연산자</link>의 동작을 설명한다. - 이 부록은 <link linkend="language.types.type-juggling">타입 저글링</link>에 관한 + 이 부록은 <link linkend="language.types.type-juggling">자료형 조절</link>에 관한 매뉴얼 섹션과도 관련이 있다. 다양한 유저 주석과 <link xlink:href="&url.blueshoes.comparisons;">BlueShoes</link>의 보고서를 통해 영감을 얻을수 있다. http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/expressions.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-kr/language/expressions.xml diff -u phpdoc-kr/language/expressions.xml:1.13 phpdoc-kr/language/expressions.xml:1.14 --- phpdoc-kr/language/expressions.xml:1.13 Sat Jun 23 13:51:36 2007 +++ phpdoc-kr/language/expressions.xml Wed Nov 12 10:55:24 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <!-- EN-Revision: 1.21 Maintainer: fuzzy74 Status: ready --> <chapter xml:id="language.expressions" xmlns="http://docbook.org/ns/docbook"> <title>표현식</title> @@ -183,7 +183,7 @@ 상수 &true;와 &false; (대소문자를 구별하지 않음)는 두가지 논리값이다. 필요하면, 표현식은 자동적으로 논리값으로 변환된다. 더자세한 정보는 - <link linkend="language.types.typecasting">형-캐스트 섹션</link>을 참고할것. + <link linkend="language.types.typecasting">자료형 변환</link>을 참고할것. </simpara> <simpara> PHP는 표현식의 완벽하고도 강력한 구현방법을 제공한다. 그런 방법을 http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/types.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-kr/language/types.xml diff -u phpdoc-kr/language/types.xml:1.21 phpdoc-kr/language/types.xml:1.22 --- phpdoc-kr/language/types.xml:1.21 Sun Nov 9 13:18:52 2008 +++ phpdoc-kr/language/types.xml Wed Nov 12 10:55:24 2008 @@ -167,7 +167,7 @@ <simpara> 변수를 강제로 특정 자료형으로 변환하려면, 변수를 <link - linkend="language.types.typecasting">캐스트</link>하거나 + linkend="language.types.typecasting">형변환</link>하거나 <function>settype</function> 함수를 사용하십시오. </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/floatval.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/var/functions/floatval.xml diff -u phpdoc-kr/reference/var/functions/floatval.xml:1.3 phpdoc-kr/reference/var/functions/floatval.xml:1.4 --- phpdoc-kr/reference/var/functions/floatval.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/floatval.xml Wed Nov 12 10:55:24 2008 @@ -1,42 +1,71 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> - <refentry xml:id="function.floatval" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>floatval</refname> - <refpurpose>변수의 실수값을 얻습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>float</type><methodname>floatval</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <simpara> - <parameter>var</parameter>의 <type>float</type>값을 반환합니다. - </simpara> - <para> - <parameter>Var</parameter>는 스칼라형을 받아들입니다. - <function>floatval</function>에 배열이나 객체를 사용할 수 없습니다. - <informalexample> - <programlisting role="php"> +<!-- EN-Revision: 1.6 Maintainer: progcom Status: ready --> +<refentry xml:id="function.floatval" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>floatval</refname> + <refpurpose>변수의 float 값을 얻습니다</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>float</type><methodname>floatval</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>var</parameter>의 <type>float</type>값을 얻습니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 모든 스칼라형. <function>floatval</function>에 배열이나 객체를 사용할 + 수 없습니다. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 주어진 변수의 float 값. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>floatval</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $var = '122.34343The'; $float_value_of_var = floatval ($var); -echo $float_value_of_var; // 122.34343를 출력 +echo $float_value_of_var; // 122.34343 ?> ]]> - </programlisting> - </informalexample> - </para> - <simpara> - 참고: <function>intval</function>, - <function>strval</function>, <function>settype</function>, - <link linkend="language.types.type-juggling">타입 - 저글링</link>. - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>intval</function></member> + <member><function>strval</function></member> + <member><function>settype</function></member> + <member><link linkend="language.types.type-juggling">자료형 조절</link></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/gettype.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/gettype.xml diff -u phpdoc-kr/reference/var/functions/gettype.xml:1.4 phpdoc-kr/reference/var/functions/gettype.xml:1.5 --- phpdoc-kr/reference/var/functions/gettype.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/gettype.xml Wed Nov 12 10:55:24 2008 @@ -1,87 +1,156 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> - <refentry xml:id="function.gettype" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>gettype</refname> - <refpurpose>변수 형을 얻습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>gettype</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - PHP 변수 <parameter>var</parameter>의 형을 반환합니다. - </para> - <warning> - <simpara> - <function>gettype</function>을 어떤 형인지 시험하기 위해 사용하지 - 마십시오. 반환 문자열은 앞으로의 버전에서 바뀔 수 있습니다. 추가로, - 문자열 비교를 수행하기 때문에 느립니다. - </simpara> - <simpara> - 대신, <literal>is_*</literal> 함수를 사용하십시오. - </simpara> - </warning> - <para> - 반환 문자열의 가능한 값은: - <itemizedlist> - <listitem> - <simpara>"<type>boolean</type>" (PHP 4부터)</simpara> - </listitem> - <listitem> - <simpara>"<type>integer</type>"</simpara> - </listitem> - <listitem> - <simpara>"<type>double</type>" (역사적인 이유로 <type>float</type>의 - 경우에도 단순한 "float"가 아닌 "double"을 반환합니다)</simpara> - </listitem> - <listitem> - <simpara>"<type>string</type>"</simpara> - </listitem> - <listitem> - <simpara>"<type>array</type>"</simpara> - </listitem> - <listitem> - <simpara>"<type>object</type>"</simpara> - </listitem> - <listitem> - <simpara>"<type>resource</type>" (PHP 4부터)</simpara> - </listitem> - <listitem> - <simpara>"<type>NULL</type>" (PHP 4부터)</simpara> - </listitem> - <listitem> - <simpara>"user function" (PHP 3만, 배제됨)</simpara> - </listitem> - <listitem> - <simpara>"unknown type"<!-- someone's joking? --></simpara> - </listitem> - </itemizedlist> - </para> - <para> - PHP 4에서는, 이전에 함수에 사용하던 <function>gettype</function> - 대신 <function>function_exists</function>와 - <function>method_exists</function>을 사용해야 합니다. - </para> - <para> - 참고: - <function>settype</function>, - <function>is_array</function>, - <function>is_bool</function>, - <function>is_float</function>, - <function>is_integer</function>, - <function>is_null</function>, - <function>is_numeric</function>, - <function>is_object</function>, - <function>is_resource</function>, - <function>is_scalar</function>, - <function>is_string</function>. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.gettype" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>gettype</refname> + <refpurpose>변수의 자료형을 얻습니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>gettype</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <para> + PHP 변수 <parameter>var</parameter>의 자료형을 반환합니다. + </para> + <warning> + <simpara> + <function>gettype</function>을 어떤 자료형인지 시험하기 위해 사용하지 + 마십시오. 반환 문자열은 앞으로 나올 버전에서 바뀔 수 있습니다. 또한, + 문자열 비교를 수행하기 때문에 느립니다. + </simpara> + <simpara> + 대신, <literal>is_*</literal> 함수를 사용하십시오. + </simpara> + </warning> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 자료형을 확인할 변수 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 반환 문자열의 가능한 값은: + <itemizedlist> + <listitem> + <simpara> + "<type>boolean</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>integer</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>double</type>" (역사적인 이유로 <type>float</type>의 + 경우에도 단순히 "float"가 아닌 "double"을 반환합니다) + </simpara> + </listitem> + <listitem> + <simpara> + "<type>string</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>array</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>object</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>resource</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "<type>NULL</type>" + </simpara> + </listitem> + <listitem> + <simpara> + "unknown type" + </simpara> + </listitem> + </itemizedlist> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>gettype</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$data = array(1, 1., NULL, new stdClass, 'foo'); + +foreach ($data as $value) { + echo gettype($value), "\n"; +} + +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +integer +double +NULL +object +string +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>settype</function></member> + <member><function>is_array</function></member> + <member><function>is_bool</function></member> + <member><function>is_float</function></member> + <member><function>is_int</function></member> + <member><function>is_null</function></member> + <member><function>is_numeric</function></member> + <member><function>is_object</function></member> + <member><function>is_resource</function></member> + <member><function>is_scalar</function></member> + <member><function>is_string</function></member> + <member><function>function_exists</function></member> + <member><function>method_exists</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -103,4 +172,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/intval.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/var/functions/intval.xml diff -u phpdoc-kr/reference/var/functions/intval.xml:1.5 phpdoc-kr/reference/var/functions/intval.xml:1.6 --- phpdoc-kr/reference/var/functions/intval.xml:1.5 Sun Nov 9 18:31:49 2008 +++ phpdoc-kr/reference/var/functions/intval.xml Wed Nov 12 10:55:24 2008 @@ -1,42 +1,123 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> - <refentry xml:id="function.intval" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>intval</refname> - <refpurpose>변수의 정수값을 얻습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>intval</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> - </methodsynopsis> - <simpara> - 지정한 base 값에 따른 <parameter>var</parameter>의 - <type>integer</type>값을 반환합니다. (기본 base는 10입니다) - </simpara> - <simpara> - <parameter>var</parameter>는 어떠한 스칼라형일 수 있습니다. - <function>intval</function>에 <type>array</type>나 <type>object</type>를 - 사용할 수 없습니다. - </simpara> - <note> - <para> - <function>intval</function>의 <parameter>base</parameter> 인수는 - <parameter>var</parameter> 인수가 문자열이 아니라면 영향을 주지 - 않습니다. - </para> - </note> - <simpara> - 참고: <function>floatval</function>, - <function>strval</function>, <function>settype</function>, - <link linkend="language.types.type-juggling">타입 - 저글링</link>. - </simpara> - </refsect1> - </refentry> +<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> +<refentry xml:id="function.intval" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>intval</refname> + <refpurpose>변수의 정수값을 얻습니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>intval</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam> + </methodsynopsis> + <para> + 지정한 <parameter>base</parameter> 값에 따른 <parameter>var</parameter>의 + <type>integer</type>값을 반환합니다. (기본 진법은 10입니다) + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 정수로 변환할 스칼라 값 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>base</parameter></term> + <listitem> + <para> + 변환에 사용할 진법 (기본값은 10진법) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 <parameter>var</parameter>의 정수 값, 실패시엔 0. 빈 배열과 객체는 + 0을 반환하고, 비어있지 않은 배열과 객체는 1을 반환합니다. + </para> + <para> + 최대값은 시스템에 의존합니다. 32비트 시스템은 부호 있는 정수의 최대값 + 범위로 -2147483648에서 2147483647을 가집니다. 그러한 시스템에서 + <literal>intval('1000000000000')</literal> 등은 2147483647을 반환합니다. + 64비트 시스템에서 부호 있는 정수의 최대값은 9223372036854775807입니다. + </para> + <para> + 문자열은 대부분 0을 반환하지만, 이는 문자열의 가장 왼쪽 문자들에 의해 + 결정됩니다. <link linkend="language.types.integer.casting">정수형 + 변환</link>의 기본 규칙이 적용됩니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>intval</function> 예제</title> + <para> + 다음 예제는 32비트 시스템입니다. + </para> + <programlisting role="php"> +<![CDATA[ +echo intval(42); // 42 +echo intval(4.2); // 4 +echo intval('42'); // 42 +echo intval('+42'); // 42 +echo intval('-42'); // -42 +echo intval(042); // 34 +echo intval('042'); // 42 +echo intval(1e10); // 1410065408 +echo intval('1e10'); // 1 +echo intval(0x1A); // 26 +echo intval(42000000); // 42000000 +echo intval(420000000000000000000); // 0 +echo intval('420000000000000000000'); // 2147483647 +echo intval(42, 8); // 42 +echo intval('42', 8); // 34 +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <parameter>var</parameter> 인수가 문자열이 아니면 + <parameter>base</parameter> 인수는 아무런 영향을 주지 않습니다. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>floatval</function></member> + <member><function>strval</function></member> + <member><function>settype</function></member> + <member><function>is_numeric</function></member> + <member><link linkend="language.types.type-juggling">자료형 조절</link></member> + <member><link linkend="ref.bc">BCMath 임의 정밀도 수학 함수</link></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -58,4 +139,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-float.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/is-float.xml diff -u phpdoc-kr/reference/var/functions/is-float.xml:1.4 phpdoc-kr/reference/var/functions/is-float.xml:1.5 --- phpdoc-kr/reference/var/functions/is-float.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-float.xml Wed Nov 12 10:55:24 2008 @@ -1,37 +1,96 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> <refentry xml:id="function.is-float" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_float</refname> - <refpurpose>변수가 실수인지 확인합니다.</refpurpose> + <refpurpose>변수의 자료형이 소수인지 확인합니다</refpurpose> </refnamediv> - <refsect1> - <title>설명</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>is_float</methodname> <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> - <simpara> - <parameter>var</parameter>가 <type>float</type>라면 &true;, 아니라면 - &false;를 반환합니다. - </simpara> + <para> + 주어진 변수의 자료형이 float인지 확인합니다. + </para> <note> <para> 변수가 숫자나 숫자 문자열(폼 입력 등은 항상 문자열입니다)인지 확인하려면, <function>is_numeric</function>을 사용해야 합니다. </para> </note> - <simpara> - 참고: - <function>is_bool</function>, - <function>is_int</function>, - <function>is_integer</function>, - <function>is_numeric</function>, - <function>is_string</function>, - <function>is_array</function>, - <function>is_object</function>, - </simpara> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>가 <type>float</type>이면 &true; 아니면 + &false;를 반환합니다. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_float</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +if(is_float(27.25)) { + echo "is float\n"; +} else { + echo "is not float\n"; +} +var_dump(is_float('abc')); +var_dump(is_float(23)); +var_dump(is_float(23.5)); +var_dump(is_float(1e7)); // 과학형식 +var_dump(is_float(true)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +is float +bool(false) +bool(false) +bool(true) +bool(true) +bool(false) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>is_bool</function></member> + <member><function>is_int</function></member> + <member><function>is_numeric</function></member> + <member><function>is_string</function></member> + <member><function>is_array</function></member> + <member><function>is_object</function></member> + </simplelist> + </para> </refsect1> </refentry> @@ -55,4 +114,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-int.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/is-int.xml diff -u phpdoc-kr/reference/var/functions/is-int.xml:1.4 phpdoc-kr/reference/var/functions/is-int.xml:1.5 --- phpdoc-kr/reference/var/functions/is-int.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-int.xml Wed Nov 12 10:55:24 2008 @@ -1,36 +1,95 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> <refentry xml:id="function.is-int" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_int</refname> - <refpurpose>변수가 정수인지 확인합니다.</refpurpose> + <refpurpose>변수의 자료형이 정수인지 확인합니다</refpurpose> </refnamediv> - <refsect1> - <title>설명</title> + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>is_int</methodname> <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> - <simpara> - <parameter>var</parameter>가 <type>integer</type>이면 &true;를, 아니라면 - &false;를 반환합니다. - </simpara> + <para> + 주어진 변수의 자료형이 정수형인지 확인합니다. + </para> <note> <para> 변수가 수나 수 문자열(항상 문자열인 폼 입력 등)인지를 확인하려면, <function>is_numeric</function>을 사용해야 합니다. </para> </note> - <simpara> - 참고: <function>is_bool</function>, - <function>is_float</function>, - <function>is_integer</function>, - <function>is_numeric</function>, - <function>is_string</function>, - <function>is_array</function>, - <function>is_object</function>. - </simpara> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>가 <type>integer</type>이면 &true;, 아니면 + &false;를 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_int</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +if (is_int(23)) { + echo "정수형입니다.\n"; +} else { + echo "정수형이 아닙니다.\n"; +} +var_dump(is_int(23)); +var_dump(is_int("23")); +var_dump(is_int(23.5)); +var_dump(is_int(true)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +정수형입니다. +bool(true) +bool(false) +bool(false) +bool(false) +]]> + </screen> + </example> + </para> + </refsect1> + + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>is_bool</function></member> + <member><function>is_float</function></member> + <member><function>is_numeric</function></member> + <member><function>is_string</function></member> + <member><function>is_array</function></member> + <member><function>is_object</function></member> + </simplelist> + </para> </refsect1> </refentry> @@ -54,4 +113,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-null.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/reference/var/functions/is-null.xml diff -u phpdoc-kr/reference/var/functions/is-null.xml:1.2 phpdoc-kr/reference/var/functions/is-null.xml:1.3 --- phpdoc-kr/reference/var/functions/is-null.xml:1.2 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-null.xml Wed Nov 12 10:55:24 2008 @@ -1,41 +1,88 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> - <refentry xml:id="function.is-null" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>is_null</refname> - <refpurpose> - 변수가 &null;인지 확인합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>is_null</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>var</parameter>가 <type>null</type>이면 &true;를, 아니라면 - &false;를 반환합니다. - </para> - <para> - 언제 변수를 &null;로 판단하는지에 대해 <link - linkend="language.types.null.syntax">&null;</link>형을 참고하십시오. - </para> - <para> - 참고: <link linkend="language.types.null.syntax">&null;</link>, - <function>is_bool</function>, - <function>is_numeric</function>, - <function>is_float</function>, - <function>is_int</function>, - <function>is_string</function>, - <function>is_object</function>, - <function>is_array</function>, - <function>is_integer</function>, - <function>is_real</function>. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> +<refentry xml:id="function.is-null" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>is_null</refname> + <refpurpose> + 변수가 &null;인지 확인합니다 + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>is_null</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <para> + 주어진 변수가 &null;인지 확인합니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>가 <type>null</type>이면 &true;를, 아니라면 + &false;를 반환합니다. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_null</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php + +error_reporting(E_ALL); + +$foo = NULL; +var_dump(is_null($inexistent), is_null($foo)); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Notice: Undefined variable: inexistent in ... +bool(true) +bool(true) +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><link linkend="language.types.null.syntax">&null;</link>형</member> + <member><function>isset</function></member> + <member><function>is_bool</function></member> + <member><function>is_numeric</function></member> + <member><function>is_float</function></member> + <member><function>is_int</function></member> + <member><function>is_string</function></member> + <member><function>is_object</function></member> + <member><function>is_array</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -57,4 +104,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-numeric.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/is-numeric.xml diff -u phpdoc-kr/reference/var/functions/is-numeric.xml:1.4 phpdoc-kr/reference/var/functions/is-numeric.xml:1.5 --- phpdoc-kr/reference/var/functions/is-numeric.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-numeric.xml Wed Nov 12 10:55:24 2008 @@ -1,34 +1,104 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> - <refentry xml:id="function.is-numeric" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>is_numeric</refname> - <refpurpose> - 변수가 수나 수 문자열인지 확인합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>is_numeric</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>var</parameter>가 수나 수 문자열이라면 &true;를, 아니라면 - &false;를 반환합니다. - </para> - <para> - 참고: <function>is_bool</function>, - <function>is_float</function>, - <function>is_int</function>, - <function>is_string</function>, - <function>is_object</function>, - <function>is_array</function>, - <function>is_integer</function>. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> +<refentry xml:id="function.is-numeric" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>is_numeric</refname> + <refpurpose> + 변수가 수나 수 문자열인지 확인합니다 + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>is_numeric</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <para> + 주어진 변수가 수인지 확인합니다. 수 문자열은 부수적인 부호, 숫자들, + 부수적인 소수점 부분과 부수적인 지수부로 이루어집니다. 그러므로 + <literal>+0123.45e6</literal>은 유효한 수 값입니다. 16진 + 표현(<literal>0xFF</literal>)도 허용되지만, 부호, 소수점, 지수부가 없어야 + 합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>가 수나 수 문자열이라면 &true;를, 아니라면 + &false;를 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_numeric</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +$tests = Array( + "42", + 1337, + "1e4", + "not numeric", + Array(), + 9.1 + ); + +foreach($tests as $element) +{ + if(is_numeric($element)) + { + echo "'{$element}' is numeric", PHP_EOL; + } + else + { + echo "'{$element}' is NOT numeric", PHP_EOL; + } +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ctype_digit</function></member> + <member><function>is_bool</function></member> + <member><function>is_null</function></member> + <member><function>is_float</function></member> + <member><function>is_int</function></member> + <member><function>is_string</function></member> + <member><function>is_object</function></member> + <member><function>is_array</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -50,4 +120,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-object.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/is-object.xml diff -u phpdoc-kr/reference/var/functions/is-object.xml:1.4 phpdoc-kr/reference/var/functions/is-object.xml:1.5 --- phpdoc-kr/reference/var/functions/is-object.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-object.xml Wed Nov 12 10:55:24 2008 @@ -1,30 +1,104 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> <refentry xml:id="function.is-object" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_object</refname> - <refpurpose>변수가 객체인지 확인합니다.</refpurpose> + <refpurpose>변수가 객체인지 확인합니다</refpurpose> </refnamediv> - <refsect1> - <title>설명</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>bool</type><methodname>is_object</methodname> <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> <para> + 주어진 변수가 객체인지 확인합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> <parameter>var</parameter>가 <type>object</type>면 &true;를, 아니라면 &false;를 반환합니다. </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_object</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +// 객체에서 배열을 반환하는 +// 간단한 함수를 선언합니다. +fucntion get_students($obj) +{ + if(!is_object($obj)) + { + return(false); + } + + return($obj->students); +} + +// 새 클래스를 선언하고 +// 값을 채웁니다. +$obj = new stdClass; +$obj->students = Array('Kalle', 'Ross', 'Felipe'); + +var_dump(get_students(NULL)); +var_dump(get_students($obj)); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + 클래스 정의가 존재하지 않는 일렬화를 푼 객체에 대해서 &false;를 + 반환합니다. (<function>gettype</function>은 <type>object</type>를 + 반환합니다) + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - 참고: <function>is_bool</function>, - <function>is_int</function>, - <function>is_integer</function>, - <function>is_float</function>, - <function>is_string</function>, - <function>is_array</function>. + <simplelist> + <member><function>is_bool</function></member> + <member><function>is_int</function></member> + <member><function>is_float</function></member> + <member><function>is_string</function></member> + <member><function>is_array</function></member> + </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file @@ -47,4 +121,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/is-string.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/is-string.xml diff -u phpdoc-kr/reference/var/functions/is-string.xml:1.4 phpdoc-kr/reference/var/functions/is-string.xml:1.5 --- phpdoc-kr/reference/var/functions/is-string.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/is-string.xml Wed Nov 12 10:55:24 2008 @@ -1,33 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> - <refentry xml:id="function.is-string" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>is_string</refname> - <refpurpose>변수가 문자열인지 확인합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>is_string</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>var</parameter>가 <type>string</type>이면 &true;를, 아니라면 - &false;를 반환합니다. - </para> - <para> - 참고: - <function>is_bool</function>, - <function>is_int</function>, - <function>is_integer</function>, - <function>is_float</function>, - <function>is_real</function>, - <function>is_object</function>, - <function>is_array</function>. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> +<refentry xml:id="function.is-string" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>is_string</refname> + <refpurpose>변수의 자료형이 문자열인지 확인합니다</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>is_string</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <para> + 주어진 변수가 문자열인지 확인합니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 평가할 변수. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>가 <type>string</type>형이면 &true;를, 아니라면 + &false;를 반환합니다. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>is_string</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +if (is_string("23")) { + echo "문자열입니다.\n"; +} else { + echo "문자열이 아닙니다.\n"; +} +var_dump(is_string('abc')); +var_dump(is_string("23")); +var_dump(is_string(23.5)); +var_dump(is_string(true)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +문자열입니다. +bool(true) +bool(true) +bool(false) +bool(false) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>is_float</function></member> + <member><function>is_int</function></member> + <member><function>is_bool</function></member> + <member><function>is_object</function></member> + <member><function>is_array</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -49,4 +105,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/print-r.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/reference/var/functions/print-r.xml diff -u phpdoc-kr/reference/var/functions/print-r.xml:1.7 phpdoc-kr/reference/var/functions/print-r.xml:1.8 --- phpdoc-kr/reference/var/functions/print-r.xml:1.7 Sun Nov 9 18:31:49 2008 +++ phpdoc-kr/reference/var/functions/print-r.xml Wed Nov 12 10:55:24 2008 @@ -1,54 +1,131 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> - <refentry xml:id="function.print-r" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>print_r</refname> - <refpurpose> - 변수에 관한 정보를 사람이 읽기 좋게 출력합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>print_r</methodname> - <methodparam><type>mixed</type><parameter>expression</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>return</parameter></methodparam> - </methodsynopsis> - <note> - <simpara> - <parameter>return</parameter> 인수는 PHP 4.3.0에서 추가되었습니다. - </simpara> - </note> - <simpara> - <function>print_r</function>은 변수에 대한 정보를 사람이 읽을 수 있는 - 방법으로 표시합니다. <type>string</type>, <type>integer</type>, - <type>float</type>이 주어지면, 값을 그대로 출력합니다. - <type>array</type>가 주어지면, 키와 요소를 알아볼 수 있는 형태로 - 표현합니다. <type>object</type>에 대해서도 비슷하게 표현합니다. - <function>var_dump</function>와는 달리, <function>print_r</function>과 - <function>var_export</function>는 PHP 5에서 protected 및 private 속성도 - 보여줍니다. - </simpara> - <simpara> - <function>print_r</function>은 배열 포인터를 마지막으로 이동합니다. - 처음으로 되돌리려면 <function>reset</function>을 사용하십시오. - </simpara> - <para> - <informalexample> - <programlisting role="php"> +<!-- EN-Revision: 1.18 Maintainer: progcom Status: ready --> +<refentry xml:id="function.print-r" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>print_r</refname> + <refpurpose> + 변수에 관한 정보를 사람이 읽기 편하게 출력 + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>print_r</methodname> + <methodparam><type>mixed</type><parameter>expression</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>return</parameter></methodparam> + </methodsynopsis> + <para> + <function>print_r</function>은 변수에 대한 정보를 사람이 읽을 수 있는 + 방법으로 표시합니다. + </para> + <para> + <function>print_r</function>, <function>var_dump</function>, + <function>var_export</function>는 PHP 5에서 객체의 protected와 private + 프로퍼티도 보여줍니다. + 정적 클래스 멤버는 보여주지 않습니다. + </para> + <para> + <function>print_r</function>은 배열 포인터를 마지막으로 이동합니다. + 처음으로 되돌리려면 <function>reset</function>을 사용하십시오. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>expression</parameter></term> + <listitem> + <para> + 출력할 표현 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>return</parameter></term> + <listitem> + <para> + <function>print_r</function>의 출력을 잡으려면, + <parameter>return</parameter> 인수를 &true;로 사용하십시오. + <function>print_r</function>은 출력(기본값)하는 대신, 출력을 + 반환합니다. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <type>string</type>, <type>integer</type>, <type>float</type>가 주어지면, + 값이 그대로 출력됩니다. <type>array</type>가 주어지면, 키와 요소를 보여주는 + 형식으로 값을 출력합니다. 비슷한 방식이 <type>object</type>에 사용됩니다. + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &note.uses-ob; + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.0</entry> + <entry> + <parameter>return</parameter> 인수가 추가되었습니다. 이전 버전의 + PHP에서 <function>print_r</function>의 출력을 잡으려면, <link + linkend="ref.outcontrol">출력 제어 함수</link>를 사용하십시오. + </entry> + </row> + <row> + <entry>4.0.4</entry> + <entry> + PHP 4.0.4 이전에는, 주어진 <type>array</type>나 <type>object</type>가 + 직접적/간접적으로 자신에 대한 참조를 가지고 있을 때, + <function>print_r</function>은 영원히 계속되었습니다. 예로써, + <literal>print_r($GLOBALS)</literal>을 들 수 있습니다. + <literal>$GLOBALS</literal>가 자신에 대한 참조를 가지고 있기 + 때문입니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>print_r</function> 예제</title> + <programlisting role="php"> <![CDATA[ <pre> <?php - $a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z')); - print_r ($a); +$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z')); +print_r ($a); ?> </pre> ]]> - </programlisting> - <para> - 출력은: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ <pre> Array @@ -64,52 +141,36 @@ ) </pre> ]]> - </screen> - </informalexample> - </para> - <para> - <function>print_r</function>의 출력을 가져오려면, - <parameter>return</parameter> 인수를 사용하십시오. 이 인수를 &true;로 - 설정하면, <function>print_r</function>은 출력을 표시(기본값)하는 대신, - 반환값으로 내보냅니다. - </para> - <para> - <example> - <title><parameter>return</parameter> 인수 예제</title> - <programlisting role="php"> + </screen> + </example> + </para> + <para> + <example> + <title><parameter>return</parameter> 인수 예제</title> + <programlisting role="php"> <![CDATA[ <?php - $b = array ('m' => 'monkey', 'foo' => 'bar', 'x' => array ('x', 'y', 'z')); - $results = print_r($b, true); //$results가 print_r의 출력을 가집니다. +$b = array ('m' => 'monkey', 'foo' => 'bar', 'x' => array ('x', 'y', 'z')); +$results = print_r($b, true); // $results가 print_r의 출력을 가집니다. ?> ]]> - </programlisting> - </example> - </para> - <note> - <simpara> - 4.3.0 이전 버전의 PHP에서 <function>print_r</function>의 출력을 - 가져오려면, <link linkend="ref.outcontrol">출력 제어 함수</link>를 - 이용하십시오. - </simpara> - </note> - <note> - <simpara> - PHP 4.0.4 이전에는, 주어진 <type>array</type>이나 <type>object</type>가 - 자기 자신에의 직접적/비직접적 참조를 포함하고 있으면 - <function>print_r</function>은 무한 루프에 빠졌습니다. 예를 들면, - <literal>print_r($GLOBALS)</literal>가 해당합니다. - <literal>$GLOBALS</literal>는 자기 자신에의 참조를 포함하고 있는 전역 - 변수이기 때문입니다. - </simpara> - </note> - <simpara> - 참고: <function>ob_start</function>, - <function>var_dump</function>, - <function>var_export</function>. - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ob_start</function></member> + <member><function>var_dump</function></member> + <member><function>var_export</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/serialize.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/var/functions/serialize.xml diff -u phpdoc-kr/reference/var/functions/serialize.xml:1.6 phpdoc-kr/reference/var/functions/serialize.xml:1.7 --- phpdoc-kr/reference/var/functions/serialize.xml:1.6 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/serialize.xml Wed Nov 12 10:55:24 2008 @@ -1,65 +1,77 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> - <refentry xml:id="function.serialize" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>serialize</refname> - <refpurpose> - 값의 저장 표현을 생성합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>serialize</methodname> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>serialize</function>는 어디에도 저장할 수 있도록 - <parameter>value</parameter>의 바이트 스트림 표현을 포함하는 문자열을 - 반환합니다. - </simpara> - <simpara> - 이는 PHP 값을 저장하거나 전달할 때 형이나 구조를 잃어버리지 않게 합니다. - </simpara> - <simpara> - serialize된 문자열을 다시 PHP 변수로 만들때는, - <function>unserialize</function>를 사용합니다. - <function>serialize</function>는 <type>resource</type>형을 제외한 모든 형을 - 다릅니다. 심지어 자기 자신을 참조하는 배열을 - <function>serialize</function>할 수도 있습니다. 배열/객체 안의 참조는 - <function>serialize</function>할 때 저장됩니다. - </simpara> - <simpara> - 객체를 일렬화할 때, 일렬화에 앞서 <function>__sleep</function> 멤버 - 함수를 호출합니다. 이는 일렬화하기 전에 객체를 마지막으로 정리할 수 있도록 - 합니다. 비슷하게, <function>unserialize</function>을 사용하려 객체를 되돌릴 - 때, <function>__wakeup</function> 멤버 함수를 호출합니다. - </simpara> - <!-- TODO - in 4.0.4pl1 this didn't work properly, however, there - been some fixes. I don't know whether this all - works correctly now, and if so, whether it is since 405 - or 406 - <note> - <simpara> - This didn't work correctly until 4.0.? - </simpara> - </note> - </simpara> - --> - <note> - <para> - PHP 3에서, 객체 속성은 일렬화되지만, 메쏘드는 잃어버립니다. PHP - 4에서는 이런 제한이 사라졌고, 속성과 메쏘드를 둘다 복구합니다. 자세한 - 정보는 <link linkend="language.oop">클래스와 객체</link>의 <link - linkend="language.oop.serialization">객체 일렬화하기</link> 섹션을 - 참고하십시오. - </para> - </note> - <para> - <example> - <title><function>serialize</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.17 Maintainer: progcom Status: ready --> +<refentry xml:id="function.serialize" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>serialize</refname> + <refpurpose>값의 저장 표현을 생성</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>serialize</methodname> + <methodparam><type>mixed</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <para> + 값의 저장 표현을 생성합니다. + </para> + <para> + 이는 PHP 값을 저장하거나 전달할 때 자료형이나 구조를 잃어버리지 않게 합니다. + </para> + <para> + 일렬화된 문자열을 다시 PHP 변수로 만드려면, + <function>unserialize</function>를 사용합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>value</parameter></term> + <listitem> + <para> + 일렬화할 값. <function>serialize</function>는 <type>resource</type>형을 + 제외한 모든 형을 다룹니다. 자기 자신을 참조하는 배열을 + <function>serialize</function>할 수도 있습니다. 배열/객체 안의 순환 + 참조도 일렬화하여 저장됩니다. 그 외의 다른 참조는 읽어버립니다. + </para> + <para> + 객체를 일렬화할 때, 일렬화 전에 <link + linkend="language.oop5.magic">__sleep</link> 멤버 함수를 호출합니다. + 이로써 일렬화하기 전에 객체를 마지막으로 정리할 수 있습니다. + 마찬가지로, <function>unserialize</function>을 사용하여 객체를 되돌릴 + 때는 <link linkend="language.oop5.magic">__wakeup</link> 멤버 함수를 + 호출합니다. + </para> + <note> + <para> + 객체의 private 멤버는 이름 앞에 클래스 이름을 덧붙입니다; protected + 멤버는 이름 앞에 '*'를 덧붙입니다. 이런 덧붙인 값은 모두 null 바이트를 + 가집니다. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>value</parameter>의 어디에라도 저장할 수 있는 바이트 스트림 + 표현을 가지는 문자열을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>serialize</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php // $session_data는 현재 사용자의 세션 정보를 다차원 배열로 @@ -69,7 +81,7 @@ $conn = odbc_connect("webdb", "php", "chicken"); $stmt = odbc_prepare($conn, "UPDATE sessions SET data = ? WHERE id = ?"); -$sqldata = array (serialize($session_data), $PHP_AUTH_USER); +$sqldata = array (serialize($session_data), $_SERVER['PHP_AUTH_USER']); if (!odbc_execute($stmt, &$sqldata)) { $stmt = odbc_prepare($conn, "INSERT INTO sessions (id, data) VALUES(?, ?)"); @@ -79,14 +91,63 @@ } ?> ]]> - </programlisting> - </example> - </para> + </programlisting> + </example> + </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>4.0.7</entry> + <entry> + 객체 일렬화 처리가 고정되었습니다. + </entry> + </row> + <row> + <entry>4.0.0</entry> + <entry> + 객체를 일렬화할 때, 메쏘드를 잃어버리지 않습니다. 자세한 정보는 <link + linkend="language.oop.serialization">객체 일렬화</link>를 + 참고하십시오. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> <para> - 참고: <function>unserialize</function>. + PHP 내부 객체를 일렬화할 수 없습니다. </para> - </refsect1> - </refentry> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>unserialize</function></member> + <member><link linkend="language.oop.serialization">객체 일렬화</link></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/settype.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/settype.xml diff -u phpdoc-kr/reference/var/functions/settype.xml:1.4 phpdoc-kr/reference/var/functions/settype.xml:1.5 --- phpdoc-kr/reference/var/functions/settype.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/settype.xml Wed Nov 12 10:55:24 2008 @@ -1,89 +1,134 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.settype" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>settype</refname> - <refpurpose>변수형을 설정합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>settype</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>var</parameter>의 변수형을 <parameter>type</parameter>로 - 설정합니다. - </para> - <para> - 사용할 수 있는 <parameter>type</parameter>의 값은: - <itemizedlist> - <listitem> - <simpara> - "boolean" (혹은, PHP 4.2.0부터, "bool") - </simpara> - </listitem> - <listitem> - <simpara> - "integer" (혹은, PHP 4.2.0부터, "int") - </simpara> - </listitem> - <listitem> - <simpara> - "float" (PHP 4.2.0부터만 가능하고, 이전의 버전은 배제된 표현 - "double"을 사용합니다) - </simpara> - </listitem> - <listitem> - <simpara> - "string" - </simpara> - </listitem> - <listitem> - <simpara> - "array" - </simpara> - </listitem> - <listitem> - <simpara> - "object" - </simpara> - </listitem> - <listitem> - <simpara> - "null" (PHP 4.2.0부터) - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>settype</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.10 Maintainer: progcom Status: ready --> +<refentry xml:id="function.settype" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>settype</refname> + <refpurpose>변수의 자료형을 설정</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>settype</methodname> + <methodparam><type>mixed</type><parameter role="reference">var</parameter></methodparam> + <methodparam><type>string</type><parameter>type</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>var</parameter> 변수의 자료형을 <parameter>type</parameter>로 + 설정합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 변환할 변수 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>type</parameter></term> + <listitem> + <para> + 사용할 수 있는 <parameter>type</parameter> 값: + <itemizedlist> + <listitem> + <simpara> + "boolean" (혹은, PHP 4.2.0부터, "bool") + </simpara> + </listitem> + <listitem> + <simpara> + "integer" (혹은, PHP 4.2.0부터, "int") + </simpara> + </listitem> + <listitem> + <simpara> + "float" (PHP 4.2.0부터만 가능, 이전의 버전은 배제된 표현 + "double"을 사용) + </simpara> + </listitem> + <listitem> + <simpara> + "string" + </simpara> + </listitem> + <listitem> + <simpara> + "array" + </simpara> + </listitem> + <listitem> + <simpara> + "object" + </simpara> + </listitem> + <listitem> + <simpara> + "null" (PHP 4.2.0부터) + </simpara> + </listitem> + </itemizedlist> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>settype</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $foo = "5bar"; // string $bar = true; // boolean -settype($foo, "integer"); // $foo는 5 (integer) -settype($bar, "string"); // $bar는 "1" (string) +settype($foo, "integer"); // $foo는 이제 5 (integer) +settype($bar, "string"); // $bar는 이제 "1" (string) ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>gettype</function>, - <link linkend="language.types.typecasting">타입 캐스팅</link>, - <link linkend="language.types.type-juggling">타입 저글링</link>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + "ini"의 최대값은 <constant>PHP_INT_MAX</constant>입니다. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>gettype</function></member> + <member><link linkend="language.types.typecasting">자료형 변환</link></member> + <member><link linkend="language.types.type-juggling">자료형 조절</link></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -105,4 +150,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/strval.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/var/functions/strval.xml diff -u phpdoc-kr/reference/var/functions/strval.xml:1.4 phpdoc-kr/reference/var/functions/strval.xml:1.5 --- phpdoc-kr/reference/var/functions/strval.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/strval.xml Wed Nov 12 10:55:24 2008 @@ -1,34 +1,90 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> - <refentry xml:id="function.strval" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strval</refname> - <refpurpose>변수의 문자열값을 얻습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>strval</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <simpara> - <parameter>var</parameter>의 <type>string</type>값을 반환합니다. - 문자열로의 변환에 대한 자세한 정보는 <type>string</type> 문서를 - 참고하십시오. - </simpara> - <simpara> - <parameter>var</parameter>는 어떠한 스칼라형입니다. - <function>strval</function>에 배열이나 객체를 사용할 수 없습니다. - </simpara> - <simpara> - 참고: <function>floatval</function>, - <function>intval</function>, <function>settype</function>, - <link linkend="language.types.type-juggling">타입 - 저글링</link>. - </simpara> - </refsect1> - </refentry> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> +<refentry xml:id="function.strval" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strval</refname> + <refpurpose>변수의 문자열 값을 얻습니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>strval</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <simpara> + 변수의 문자열 값을 얻습니다. + 문자열로 변환에 대한 자세한 정보는 <type>string</type> 문서를 + 참고하십시오. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + <type>string</type>으로 변환할 변수 + </para> + <para> + <parameter>var</parameter>는 모든 스칼라형이 될 수 있습니다. + <function>strval</function>에 배열이나 객체를 사용할 수 없습니다. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>var</parameter>의 <type>string</type> 값. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>PHP5의 __toString 마법 메쏘드를 사용하는 + <function>strval</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +class StrValTest +{ + public function __toString() + { + return __CLASS__; + } +} + +// 'StrValTest' 출력 +echo strval(new StrValTest); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>floatval</function></member> + <member><function>intval</function></member> + <member><function>settype</function></member> + <member><link linkend="language.types.type-juggling">자료형 조절</link></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -50,4 +106,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/unserialize.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/reference/var/functions/unserialize.xml diff -u phpdoc-kr/reference/var/functions/unserialize.xml:1.7 phpdoc-kr/reference/var/functions/unserialize.xml:1.8 --- phpdoc-kr/reference/var/functions/unserialize.xml:1.7 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/var/functions/unserialize.xml Wed Nov 12 10:55:24 2008 @@ -1,75 +1,111 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.15 Maintainer: progcom Status: ready --> - <refentry xml:id="function.unserialize" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>unserialize</refname> - <refpurpose> - 저장 표현에서 PHP 값을 작성합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>mixed</type><methodname>unserialize</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>unserialize</function>은 하나의 일렬화된 - 변수(<function>serialize</function> 참고)를 받아서 PHP 값으로 변환합니다. - 변환한 값을 반환합니다. <type>integer</type>, <type>float</type>, - <type>string</type>, <type>array</type>, <type>object</type>형이 될 수 - 있습니다. unserialize할 수 없는 문자열일 경우에는, &false;를 반환합니다. - </simpara> - <note> - <title>unserialize_callback_func 지시어</title> - <para> - unserialize중에 정의되지 않은 클래스를 작성해야 할 경우에 콜백 함수를 - 호출할 수 있습니다. (완전하지 않은 <type>object</type> - "__PHP_Incomplete_Class"를 얻는것을 방지할 수 있습니다) &php.ini;나 - <function>ini_set</function>이나 &htaccess;를 이용하여 - 'unserialize_callback_func'를 정의하십시오. 정의되지 않은 클래스를 - 작성해야 할 때 마다, 호출됩니다. 이 기능을 비활성화 하려면 간단히 이 - 설정을 비워두십시오. unserialize_callback_func 지시어는 PHP 4.2.0부터 - 사용할 수 있습니다. - </para> - </note> - <para> - 변수가 객체로 unserialize되고, 성공적으로 객체로 재구성되면, PHP는 - 자동적으로 <function>__wakeup</function> 멤버 함수를 호출합니다. - (존재한다면) - <example> - <title>unserialize_callback_func 예제</title> - <programlisting role="php"> -<![CDATA[ -<?php -$serialized_object='O:1:"a":1:{s:5:"value";s:3:"100";}'; +<!-- EN-Revision: 1.23 Maintainer: progcom Status: ready --> +<refentry xml:id="function.unserialize" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>unserialize</refname> + <refpurpose> + 저장 표현에서 PHP 값을 작성 + </refpurpose> + </refnamediv> -// unserialize_callback_func 지시어는 PHP 4.2.0부터 사용할 수 있습니다. -ini_set('unserialize_callback_func', 'mycallback'); // 콜백 함수를 설정 + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>unserialize</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <simpara> + <function>unserialize</function>은 하나의 일렬화된 변수를 받아서 PHP 값으로 + 변환합니다. + </simpara> + </refsect1> -function mycallback($classname) -{ - // 단지 클래스를 정의하는 파일을 포함합니다. - // 어떤 클래스 정의가 필요한가는 $classname에서 얻을 수 있습니다. -} -?> -]]> - </programlisting> - </example> - </para> - <note> - <para> - PHP 3에서, 메쏘드는 일렬화된 객체를 unserialize할 때 복구되지 않습니다. - PHP 4는 이 제한을 제거했고, 속성과 메쏘드를 둘 다 복구합니다. 자세한 - 정보는 <link linkend="language.oop">클래스와 객체</link>의 <link - linkend="language.oop.serialization">객체 일렬화하기</link> 섹션을 - 참고하십시오. - </para> - </note> - <para> - <example> - <title><function>unserialize</function> 예제</title> - <programlisting role="php"> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + 일렬화된 문자열. + </para> + <para> + 변수가 객체로 unserialize되고, 성공적으로 객체로 재구성되면, PHP는 + 자동적으로 <function>__wakeup</function> 멤버 함수를 호출합니다. + (존재한다면) + </para> + <para> + <note> + <title>unserialize_callback_func 지시어</title> + <para> + 일렬화를 푸는 도중에 미정의된 클래스가 생성될 때 호출할 콜백 함수를 + 설정할 수 있습니다. (미완성된 <type>object</type> + "__PHP_Incomplete_Class"를 방지합니다) &php.ini;, + <function>ini_set</function>, &htaccess; 등을 이용해서 + 'unserialize_callback_func'를 정의하십시오. 미정의 클래스가 + 생성되어야 할 때마다 호출됩니다. 이 기능을 끄려면 설정을 비워두면 + 됩니다. + </para> + </note> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 변환된 값이 반환되며, <type>boolean</type>, <type>integer</type>, + <type>float</type>, <type>string</type>, <type>array</type>, + <type>object</type>가 될 수 있습니다. + </para> + <para> + 주어진 문자열에서 일렬화를 풀 수 없을 때는 &false;를 반환하고 + <literal>E_NOTICE</literal>가 발생합니다. + </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>4.2.0</entry> + <entry> + unserialize_callback_func 지시어를 사용할 수 있게 되었습니다. + </entry> + </row> + <row> + <entry>4.0.0</entry> + <entry> + 객체를 일렬화 할 때, 메쏘드를 잃어버리지 않습니다. 자세한 정보는 <link + linkend="language.oop.serialization">객체 일렬화</link>를 + 참고하십시오. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>unserialize</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php // 여기서는, 데이터베이스에서 가져온 문자열로부터 $session_data @@ -78,7 +114,7 @@ $conn = odbc_connect("webdb", "php", "chicken"); $stmt = odbc_prepare($conn, "SELECT data FROM sessions WHERE id = ?"); -$sqldata = array ($PHP_AUTH_USER); +$sqldata = array($_SERVER['PHP_AUTH_USER']); if (!odbc_execute($stmt, &$sqldata) || !odbc_fetch_into($stmt, &$tmp)) { // excute나 fetch가 실패하면, 빈 배열로 초기화합니다. $session_data = array(); @@ -92,14 +128,55 @@ } ?> ]]> - </programlisting> - </example> - </para> + </programlisting> + </example> + </para> + <para> + <example> + <title>unserialize_callback_func 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +$serialized_object='O:1:"a":1:{s:5:"value";s:3:"100";}'; + +// unserialize_callback_func 지시어는 PHP 4.2.0부터 사용할 수 있습니다. +ini_set('unserialize_callback_func', 'mycallback'); // 콜백 함수를 설정 + +function mycallback($classname) +{ + // 단지 클래스를 정의하는 파일을 포함합니다. + // 어떤 클래스 정의가 필요한가는 $classname에서 얻을 수 있습니다. +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <warning> <para> - 참고: <function>serialize</function>. + 오류가 발생했을 때와 일렬화된 &false; 값을 복구했을 때, 둘 다 &false;를 + 반환합니다. <parameter>str</parameter>를 + <literal>serialize(false)</literal>와 비교하거나, + <literal>E_NOTICE</literal> 발생을 확인해서 이러한 특별한 경우를 처리할 수 + 있습니다. </para> - </refsect1> - </refentry> + </warning> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>serialize</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/unset.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-kr/reference/var/functions/unset.xml diff -u phpdoc-kr/reference/var/functions/unset.xml:1.9 phpdoc-kr/reference/var/functions/unset.xml:1.10 --- phpdoc-kr/reference/var/functions/unset.xml:1.9 Mon Nov 10 07:09:24 2008 +++ phpdoc-kr/reference/var/functions/unset.xml Wed Nov 12 10:55:24 2008 @@ -1,56 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.10 Maintainer: progcom Status: ready --> - <refentry xml:id="function.unset" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>unset</refname> - <refpurpose>주어진 변수를 제거합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>void</type><methodname>unset</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> - </methodsynopsis> - - <para> - <function>unset</function>은 주어진 변수를 파괴합니다. PHP 3에서, - <function>unset</function>은 항상 &true;를 반환했습니다. (정확히는, - 정수값 1) 그러나 PHP 4에서, <function>unset</function>은 true 함수가 - 아닙니다: 이제 구문입니다. 아무 값도 반환하지 않고, - <function>unset</function>의 결과를 가져오려고 하면 parse 에러가 - 생성됩니다. - </para> - <para> - <example> - <title><function>unset</function> 예제</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 하나의 변수를 파괴 -unset($foo); +<!-- EN-Revision: 1.20 Maintainer: progcom Status: ready --> +<refentry xml:id="function.unset" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>unset</refname> + <refpurpose>주어진 변수를 제거</refpurpose> + </refnamediv> -// 배열의 한 요소를 파괴 -unset($bar['quux']); + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>void</type><methodname>unset</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>var</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> + </methodsynopsis> -// 하나 이상의 변수를 파괴 -unset($foo1, $foo2, $foo3); -?> -]]> - </programlisting> - </example> - </para> - <para> - 함수 안에서 <function>unset</function>의 행동은 어떠한 변수형을 파괴하려 - 했는지에 따라 달라집니다. - </para> - <para> - 함수 안에서 전역 변수를 <function>unset</function>하면, 로컬 변수만 - 파괴됩니다. 호출한 환경에서 변수는 <function>unset</function>을 호출하기 - 전과 같은 값을 유지합니다. - <informalexample> - <programlisting role="php"> + <para> + <function>unset</function>은 주어진 변수를 파괴합니다. + </para> + <para> + 함수 안에서 <function>unset</function>의 행동은 어떠한 변수를 제거하려 + 하는지에 따라 달라집니다. + </para> + <para> + 함수 안에서 전역 변수를 <function>unset</function>하면, 로컬 변수만 + 파괴됩니다. 호출한 환경에서 변수는 <function>unset</function>을 호출하기 + 전과 같은 값을 유지합니다. + <informalexample> + <programlisting role="php"> <![CDATA[ <?php function destroy_foo() @@ -64,23 +41,44 @@ echo $foo; ?> ]]> - </programlisting> - </informalexample> - 위 예제의 출력: - <informalexample> - <screen> + </programlisting> + </informalexample> + </para> + &example.outputs; + <para> + <informalexample> + <screen> <![CDATA[ bar ]]> - </screen> - </informalexample> - </para> - <para> - 함수 안에서 참조로 넘겨진 변수를 <function>unset</function>하면, 로컬 - 변수만이 파괴됩니다. 호출한 함수에서 변수는 <function>unset</function>을 - 호출하기 전과 동일한 값을 유지합니다. - <informalexample> - <programlisting role="php"> + </screen> + </informalexample> + </para> + <para> + 전역 변수를 함수 안에서 <function>unset</function>하려면, + <varname>$GLOBALS</varname> 배열을 사용할 수 있습니다: + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +function foo() +{ + unset($GLOBALS['bar']); +} + +$bar = "something"; +foo(); +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + 함수 안에서 *참조로 넘겨진* 변수를 <function>unset</function>하면, 로컬 + 변수만이 파괴됩니다. 호출한 함수에서 변수는 <function>unset</function>을 + 호출하기 전과 동일한 값을 유지합니다. + <informalexample> + <programlisting role="php"> <![CDATA[ <?php function foo(&$bar) @@ -96,30 +94,35 @@ echo "$bar\n"; ?> ]]> - </programlisting> - </informalexample> - 위 예제의 출력: - <informalexample> - <screen> + </programlisting> + </informalexample> + </para> + &example.outputs; + <para> + <informalexample> + <screen> <![CDATA[ something something ]]> - </screen> - </informalexample> - </para> - <para> - 함수 안에서 정적 변수를 <function>unset</function>하면, - <function>unset</function>은 변수와 모든 참조를 파괴합니다. - <informalexample> - <programlisting role="php"> + </screen> + </informalexample> + </para> + <para> + 함수 안에서 정적 변수를 <function>unset</function>하면, + <function>unset</function>은 함수의 나머지 문맥에서만 변수를 제거합니다. + 이어지는 호출은 변수의 이전 값을 복구합니다. + <informalexample> + <programlisting role="php"> <![CDATA[ <?php function foo() { - static $a; - $a++; - echo "$a\n"; - unset($a); + static $bar; + $bar++; + echo "Before unset: $bar, "; + unset($bar); + $bar = 23; + echo "after unset: $bar\n"; } foo(); @@ -127,47 +130,147 @@ foo(); ?> ]]> - </programlisting> - </informalexample> - 위 예제의 출력: - <informalexample> - <screen> -<![CDATA[ -1 -2 -3 -]]> - </screen> - </informalexample> - </para> - <para> - 함수 안에서 전역 변수를 <function>unset</function>하려면, - <varname>$GLOBALS</varname> 배열을 사용할 수 있습니다: - <informalexample> - <programlisting role="php"> + </programlisting> + </informalexample> + </para> + &example.outputs; + <para> + <informalexample> + <screen> +<![CDATA[ +Befor unset: 1, after unset: 23 +Befor unset: 2, after unset: 23 +Befor unset: 3, after unset: 23 +]]> + </screen> + </informalexample> + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 제거할 변수 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>var</parameter></term> + <listitem> + <para> + 다른 변수 .. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.void; + </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>4.0.0</entry> + <entry> + <function>unset</function>은 표현이 되었습니다. (PHP 3에서, + <function>unset</function>은 항상 1을 반환했습니다) + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>unset</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php +// 하나의 변수 파괴 +unset($foo); + +// 배열의 한 요소 파괴 +unset($bar['quux']); + +// 하나 이상의 변수 파괴 +unset($foo1, $foo2, $foo3); +?> +]]> + </programlisting> + </example> + <example> + <title>(unset) 캐스팅 사용하기</title> + <programlisting role="php"> <![CDATA[ <?php -function foo() { - unset($GLOBALS['bar']); -} +$name = 'Felipe'; -$bar = "something"; -foo(); +var_dump((unset) $name); ?> ]]> - </programlisting> - </informalexample> - </para> - - &note.language-construct; - - <para> - 참고: <function>isset</function>, - <function>empty</function>, - <function>array_splice</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &note.language-construct; + <note> + <para> + 현 문맥에서 보이는 객체 프로퍼티도 제거할 수 있습니다. + </para> + </note> + <note> + <para> + PHP 5부터 객체 메쏘드 안에서 <literal>$this</literal>를 제거할 수 없습니다. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>isset</function></member> + <member><function>empty</function></member> + <member><function>array_splice</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/var/functions/var-export.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/var/functions/var-export.xml diff -u phpdoc-kr/reference/var/functions/var-export.xml:1.5 phpdoc-kr/reference/var/functions/var-export.xml:1.6 --- phpdoc-kr/reference/var/functions/var-export.xml:1.5 Sun Nov 9 18:31:49 2008 +++ phpdoc-kr/reference/var/functions/var-export.xml Wed Nov 12 10:55:24 2008 @@ -1,41 +1,100 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.var-export" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>var_export</refname> - <refpurpose>변수의 표현을 출력하거나 문자열로 반환합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>mixed</type><methodname>var_export</methodname> - <methodparam><type>mixed</type><parameter>expression</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>return</parameter></methodparam> - </methodsynopsis> - <simpara> - 이 함수는 넘겨진 변수에 대한 구조 정보를 반환합니다. 두가지 차이를 - 제외하고, <function>var_dump</function>와 동일합니다. 첫번째는 반환하는 - 표현이 유효한 PHP 코드인 점이고, 두번째는 PHP 5에서 객체의 protected 및 - private 속성을 반환하는 점입니다. - </simpara> - <simpara> - 이 함수의 두번째 인수를 &true;로 사용해서 변수 표현을 반환하도록 할 수 - 있습니다. - </simpara> - <para> - <informalexample> - <programlisting role="php"> +<!-- EN-Revision: 1.15 Maintainer: progcom Status: ready --> +<refentry xml:id="function.var-export" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>var_export</refname> + <refpurpose>변수를 처리가능한 문자열 표현으로 출력하거나 반환합니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>var_export</methodname> + <methodparam><type>mixed</type><parameter>expression</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>return</parameter></methodparam> + </methodsynopsis> + <simpara> + <function>var_export</function>는 주어진 변수에 대한 구조화된 정보를 + 얻습니다. 한 가지 차이를 제외하고, <function>var_dump</function>와 + 동일합니다: 반환된 표현은 유효한 PHP 코드입니다. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>expression</parameter></term> + <listitem> + <para> + 내보내길 원하는 변수 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>return</parameter></term> + <listitem> + <para> + &true;로 설정하여 사용하면, <function>var_export</function>는 변수 + 표현을 출력하는 대신에 반환합니다. + </para> + &note.uses-ob; + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>return</parameter> 인수를 &true;로 사용할 때 변수 표현을 + 반환합니다. 그 외에는 &null;을 반환합니다. + </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.1.0</entry> + <entry> + <link linkend="language.oop5.magic.set-state">__set_state</link> 마법 + 메쏘드를 사용하여 클래스와 클래스를 가진 배열을 내보낼 수 있게 + 되었습니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>var_export</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $a = array (1, 2, array ("a", "b", "c")); var_export($a); ?> ]]> - </programlisting> - <para> - 출력: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ array ( 0 => 1, @@ -48,8 +107,8 @@ ), ) ]]> - </screen> - <programlisting role="php"> + </screen> + <programlisting role="php"> <![CDATA[ <?php $b = 3.1; @@ -57,22 +116,113 @@ echo $v; ?> ]]> - </programlisting> - <para> - 출력: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 3.1 ]]> - </screen> - </informalexample> - </para> - <simpara> - 참고: <function>var_dump</function>, <function>print_r</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + <example> + <title>PHP 5.1.0부터 클래스 내보내기</title> + <programlisting role="php"> +<![CDATA[ +<?php +class A { public $var; } +$a = new A; +$a->var = 5; +var_export($a); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +A::__set_state(array( + 'var' => 5, +)) +]]> + </screen> + </example> + </para> + <para> + <example> + <title><link linkend="language.oop5.magic.set-state">__set_state</link> + 사용하기 (PHP 5.1.0부터)</title> + <programlisting role="php"> +<![CDATA[ +<?php +class A +{ + public $var1; + public $var2; + + public static function __set_state($an_array) + { + $obj = new A; + $obj->var1 = $an_array['var1']; + $obj->var2 = $an_array['var2']; + return $obj; + } +} + +$a = new A; +$a->var1 = 5; +$a->var2 = 'foo'; + +eval('$b = ' . var_export($a, true) . ';'); // $b = A::__set_state(array( + // 'var1' => 5, + // 'var2' => 'foo', + // )); +var_dump($b); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +object (A)#2 (2) { + ["var1"]=> + int(5) + ["var2"]=> + string(3) "foo" +} +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + 이 함수로 <type>resource</type>형 변수는 내보낼 수 없습니다. + </para> + </note> + <note> + <para> + <function>var_export</function>는 순환 참조를 다루지 못합니다. 처리 가능한 + PHP 코드를 생성하는 것이 불가능에 가깝기 때문입니다. 배열이나 객체로 + 그러한 일을 하려면, <function>serialize</function>를 사용하십시오. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>print_r</function></member> + <member><function>serialize</function></member> + <member><function>var_dump</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.kr (#766) next »