cvs: phpdoc-kr / language-snippets.ent /appendices reserved.constants.core.xml /features safe-mode.xml /language operators.xml
/reference/array/functions array-filter.xml array-flip.xml array-intersect.xml array-pad.xml array-pop.xml /reference/classobj/functions is-a.xml
/reference/info ini.xml

From: Date: Thu, 11 Dec 2008 10:13:04 +0000
Subject: cvs: phpdoc-kr / language-snippets.ent /appendices reserved.constants.core.xml /features safe-mode.xml /language operators.xml
/reference/array/functions array-filter.xml array-flip.xml array-intersect.xml array-pad.xml array-pop.xml /reference/classobj/functions is-a.xml
/reference/info ini.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-809@lists.php.net to get a copy of this message
progcom Thu Dec 11 10:13:04 2008 UTC Modified files: /phpdoc-kr language-snippets.ent /phpdoc-kr/appendices reserved.constants.core.xml /phpdoc-kr/features safe-mode.xml /phpdoc-kr/language operators.xml /phpdoc-kr/reference/array/functions array-filter.xml array-flip.xml array-intersect.xml array-pad.xml array-pop.xml /phpdoc-kr/reference/classobj/functions is-a.xml /phpdoc-kr/reference/info ini.xml Log: sync

http://cvs.php.net/viewvc.cgi/phpdoc-kr/language-snippets.ent?r1=1.67&r2=1.68&diff_format=u Index: phpdoc-kr/language-snippets.ent diff -u phpdoc-kr/language-snippets.ent:1.67 phpdoc-kr/language-snippets.ent:1.68 --- phpdoc-kr/language-snippets.ent:1.67 Sun Nov 30 08:40:29 2008 +++ phpdoc-kr/language-snippets.ent Thu Dec 11 10:13:04 2008 @@ -1,4 +1,4 @@ -<!-- EN-Revision: 1.233 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.234 Maintainer: progcom Status: ready --> <!-- Keep 'em sorted --> @@ -113,10 +113,15 @@ 예고 없이 변경될 수 있습니다. 이 확장 모듈의 사용은 사용자의 책임하에 이루어집니다.</simpara></warning>'> -<!ENTITY warn.deprecated.removed-6-0-0 '<warning -xmlns="http://docbook.org/ns/docbook"><simpara>이 기능은 +<!ENTITY warn.deprecated.feature-5-3-0.removed-6-0-0 '<warning +xmlns="http://docbook.org/ns/docbook"><simpara>이 기능은 PHP 5.3.0부터 +<emphasis>배제되고</emphasis> PHP 6.0.0부터 <emphasis>제거됩니다</emphasis>. +이 기능에 의존하지 않기를 권합니다.</simpara></warning>'> + +<!ENTITY warn.deprecated.function-5-3-0.removed-6-0-0 '<warning +xmlns="http://docbook.org/ns/docbook"><simpara>이 함수는 PHP 5.3.0부터 <emphasis>배제되었고</emphasis> PHP 6.0.0부터 <emphasis>제거됩니다</emphasis>. -이 기능을 사용하지 않기를 권합니다.</simpara></warning>'> +이 기능에 의존하지 않기를 권합니다.</simpara></warning>'> <!ENTITY warn.deprecated.function.removed-5-3-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>이 함수는 http://cvs.php.net/viewvc.cgi/phpdoc-kr/appendices/reserved.constants.core.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/appendices/reserved.constants.core.xml diff -u phpdoc-kr/appendices/reserved.constants.core.xml:1.6 phpdoc-kr/appendices/reserved.constants.core.xml:1.7 --- phpdoc-kr/appendices/reserved.constants.core.xml:1.6 Sat Nov 8 16:05:13 2008 +++ phpdoc-kr/appendices/reserved.constants.core.xml Thu Dec 11 10:13:04 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.21 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.22 Maintainer: progcom Status: ready --> <!-- CREDITS: fuzzy74 --> <sect2 xml:id="reserved.constants.core" xmlns="http://docbook.org/ns/docbook"> <title>코어 예약 상수</title> @@ -95,6 +95,17 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>PHP_MAXPATHLEN</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + PHP 5.3.0부터 사용할 수 있습니다. + </simpara> + </listitem> + </varlistentry> <varlistentry> <term> @@ -451,6 +462,28 @@ </varlistentry> <varlistentry> <term> + <constant>E_DEPRECATED</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + PHP 5.3.0부터 존재 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>E_USER_DEPRECATED</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + PHP 5.3.0부터 존재 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>E_ALL</constant> (<type>integer</type>) </term> http://cvs.php.net/viewvc.cgi/phpdoc-kr/features/safe-mode.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-kr/features/safe-mode.xml diff -u phpdoc-kr/features/safe-mode.xml:1.10 phpdoc-kr/features/safe-mode.xml:1.11 --- phpdoc-kr/features/safe-mode.xml:1.10 Sun Nov 30 08:40:29 2008 +++ phpdoc-kr/features/safe-mode.xml Thu Dec 11 10:13:04 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.79 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.80 Maintainer: progcom Status: ready --> <!-- CREDITS: fuzzy74 --> <chapter xml:id="features.safe-mode" xmlns="http://docbook.org/ns/docbook"> <title>안전 모드</title> @@ -71,7 +71,7 @@ <entry>open_basedir</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP &lt; 6에서 PHP_INI_SYSTEM.</entry> + <entry>PHP &lt; 5.3.0에서 PHP_INI_SYSTEM</entry> </row> <row> <entry>disable_functions</entry> @@ -250,6 +250,14 @@ <para> 기본값은 모든 파일이 열릴수 있도록 허용되어 있다. </para> + <note> + <para> + PHP 5.3.0부터 open_basedir을 실행시에 강화할 수 있습니다. 즉, + open_basedir이 &php.ini;에서 <literal>/www/</literal>로 설정되어 + 있다면, 스크립트 실행시에 <function>ini_set</function>으로 + <literal>/www/tmp/</literal>로 설정을 강화할 수 있습니다. + </para> + </note> </listitem> </varlistentry> <varlistentry xml:id="ini.disable-functions"> http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/operators.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-kr/language/operators.xml diff -u phpdoc-kr/language/operators.xml:1.15 phpdoc-kr/language/operators.xml:1.16 --- phpdoc-kr/language/operators.xml:1.15 Wed Dec 3 22:24:59 2008 +++ phpdoc-kr/language/operators.xml Thu Dec 11 10:13:04 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.127 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.128 Maintainer: progcom Status: ready --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>연산자</title> <simpara> @@ -1337,7 +1337,8 @@ <simpara> <literal>instanceof</literal> 연산자는 PHP 5에서 추가되었습니다. 이전에는 <function>is_a</function>가 사용되었지만, <function>is_a</function>는 - <literal>instanceof</literal>의 기능으로 인해 배제되었습니다. + <literal>instanceof</literal>의 기능으로 인해 배제되었습니다. PHP + 5.3.0부터 <function>is_a</function>는 배제되지 않게 되었습니다. </simpara> <para> 참고: <function>get_class</function>, http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/array/functions/array-filter.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/array/functions/array-filter.xml diff -u phpdoc-kr/reference/array/functions/array-filter.xml:1.3 phpdoc-kr/reference/array/functions/array-filter.xml:1.4 --- phpdoc-kr/reference/array/functions/array-filter.xml:1.3 Sat Jun 23 13:51:37 2007 +++ phpdoc-kr/reference/array/functions/array-filter.xml Thu Dec 11 10:13:04 2008 @@ -1,55 +1,98 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.11 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.array-filter" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>array_filter</refname> - <refpurpose> - 콜백함수를 사용하여 배열의 원소를 필터한다 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>array</type><methodname>array_filter</methodname> - <methodparam><type>array</type><parameter>input</parameter></methodparam> - <methodparam choice="opt"><type>callback</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - <function>array_filter</function>는 - <parameter>input</parameter> 배열안의 각값에 - <parameter>callback</parameter> 함수에 전달하는 작업을 반복한다. - <parameter>callback</parameter> 함수가 true를 반환하면, - <parameter>input</parameter>의 현재값이 결과 배열로 반환된다. - 배열 키들은 보존된다. - </para> - <para> - <example> - <title><function>array_filter</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.20 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.array-filter" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>array_filter</refname> + <refpurpose>콜백 함수를 사용하여 배열 원소를 필터</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>array_filter</methodname> + <methodparam><type>array</type><parameter>input</parameter></methodparam> + <methodparam choice="opt"><type>callback</type><parameter>callback</parameter></methodparam> + </methodsynopsis> + <para> + <function>array_filter</function>는 + <parameter>input</parameter> 배열안의 각값에 + <parameter>callback</parameter> 함수에 전달하는 작업을 반복한다. + <parameter>callback</parameter> 함수가 true를 반환하면, + <parameter>input</parameter>의 현재값이 결과 배열로 반환된다. + 배열 키들은 보존된다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + + <varlistentry> + <term><parameter>input</parameter></term> + <listitem> + <para> + 반복할 배열 + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter>callback</parameter></term> + <listitem> + <para> + 사용할 콜백 함수 + </para> + <para> + <parameter>callback</parameter>을 지정하지 않으면, + <parameter>input</parameter>에서 &false;와 같은(<link + linkend="language.types.boolean.casting">논리형으로 변환</link> 참고) + 모든 원소는 제거됩니다. + </para> + </listitem> + </varlistentry> + + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 필터한 배열을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>array_filter</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -function odd($var) { - return ($var % 2 == 1); +function odd($var) +{ + return ($var & 1); } function even($var) { - return ($var % 2 == 0); + return (!($var & 1)); } -$array1 = array ("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5); -$array2 = array (6, 7, 8, 9, 10, 11, 12); +$array1 = array("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5); +$array2 = array(6, 7, 8, 9, 10, 11, 12); -echo "Odd :\n"; +echo "홀수:\n"; print_r(array_filter($array1, "odd")); -echo "Even:\n"; +echo "짝수:\n"; print_r(array_filter($array2, "even")); ?> ]]> - </programlisting> - <para> - 위 예제코드는 다음과 같이 출력된다: - </para> - <screen role="php"> + </programlisting> + &example.outputs; + <screen role="php"> <![CDATA[ Odd : Array @@ -67,20 +110,63 @@ [6] => 12 ) ]]> - </screen> - </example> - </para> - <para> - 유저는 콜백 함수에서 배열 자체를 변경할수 없다. 즉 원소를 추가/삭제, - <function>array_filter</function>가 적용되는 배열을 unset시킬수없다. - 배열이 변경되면 이 함수의 동작은 예상할수 없게된다. - </para> - <para> - <function>array_map</function>, - <function>array_reduce</function>, <function>array_walk</function> 참고. - </para> - </refsect1> - </refentry> + </screen> + </example> + <example> + <title><parameter>callback</parameter> 없는 + <function>array_filter</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$entry = array( + 0 => 'foo', + 1 => 'false', + 2 => -1, + 3 => null, + 4 => '' + ); + +print_r(array_filter($entry)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [0] => foo + [1] => -1 +) +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <caution> + <para> + 콜백 함수에서 배열을 변경할 때(원소 추가, 삭제, unset 등), 이 함수의 + 동작은 정의되지 않습니다. + </para> + </caution> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>array_map</function></member> + <member><function>array_reduce</function></member> + <member><function>array_walk</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/array/functions/array-flip.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/array/functions/array-flip.xml diff -u phpdoc-kr/reference/array/functions/array-flip.xml:1.4 phpdoc-kr/reference/array/functions/array-flip.xml:1.5 --- phpdoc-kr/reference/array/functions/array-flip.xml:1.4 Sat Jun 23 13:51:37 2007 +++ phpdoc-kr/reference/array/functions/array-flip.xml Thu Dec 11 10:13:04 2008 @@ -1,64 +1,88 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.10 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.array-flip" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>array_flip</refname> - <refpurpose>배열안의 모든 키를 각 키의 연관값으로 바꾼다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>array</type><methodname>array_flip</methodname> - <methodparam><type>array</type><parameter>trans</parameter></methodparam> - </methodsynopsis> - <para> - <function>array_flip</function>은 뒤집힌 순서의 <type>array</type>를 반환한다. - 즉, <parameter>trans</parameter>의 키는 값이 되고, - <parameter>trans</parameter>의 값은 키가 된다. - </para> - <para> - <parameter>trans</parameter>의 값들은 유효한 키가 되어야 한다는 것에 주의한다. - 즉, 그 값들은 <type>integer</type>나 <type>string</type>이 될 필요가 있다. - 어떤 값이 잘못된 타입을 갖으면 경고메시지가 보일것이다. 그리고 결과적으로 - 키/값 쌍은 <emphasis>뒤집히지 않을것이다</emphasis>. - </para> - <para> - 같은 값이 여러번 출현하면, 그 값의 제일 마지막 키를 사용할것이고, 나머지 모두 - 사라지게 될것이다. - </para> - <para> - 실패하면, - <function>array_flip</function> 는 &false;를 반환한다. - </para> - <para> - <example> - <title><function>array_flip</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.14 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.array-flip" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>array_flip</refname> + <refpurpose>배열 안의 모든 키를 각 키의 연관 값과 교체</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>array_flip</methodname> + <methodparam><type>array</type><parameter>trans</parameter></methodparam> + </methodsynopsis> + <para> + <function>array_flip</function>은 뒤집힌 순서의 <type>array</type>를 반환한다. + 즉, <parameter>trans</parameter>의 키는 값이 되고, + <parameter>trans</parameter>의 값은 키가 된다. + </para> + <para> + <parameter>trans</parameter>의 값들은 유효한 키가 되어야 한다는 것에 주의한다. + 즉, 그 값들은 <type>integer</type>나 <type>string</type>이 될 필요가 있다. + 어떤 값이 잘못된 타입을 갖으면 경고메시지가 보일것이다. 그리고 결과적으로 + 키/값 쌍은 <emphasis>뒤집히지 않을것이다</emphasis>. + </para> + <para> + 같은 값이 여러번 출현하면, 그 값의 제일 마지막 키를 사용할것이고, 나머지 모두 + 사라지게 될것이다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>trans</parameter></term> + <listitem> + <para> + 뒤집을 키/값 쌍의 배열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 뒤집은 배열을, 실패시엔 &false;를 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>array_flip</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -$trans = array_flip ($trans); -$original = strtr ($str, $trans); +$trans = array_flip($trans); +$original = strtr($str, $trans); ?> ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title><function>array_flip</function> 예제코드 : 충돌</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>array_flip</function> 예제 : 충돌</title> + <programlisting role="php"> <![CDATA[ <?php -$trans = array ("a" => 1, "b" => 1, "c" => 2); -$trans = array_flip ($trans); +$trans = array("a" => 1, "b" => 1, "c" => 2); +$trans = array_flip($trans); print_r($trans); ?> ]]> - </programlisting> - <para> - now <varname>$trans</varname> is: - </para> - <screen> + </programlisting> + <para> + 이제 <varname>$trans</varname>는: + </para> + <screen> <![CDATA[ Array ( @@ -66,16 +90,22 @@ [2] => c ) ]]> - </screen> - </example> - </para> - <para> - <function>array_values</function>, - <function>array_keys</function>, - <function>array_reverse</function> 참고. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>array_values</function></member> + <member><function>array_keys</function></member> + <member><function>array_reverse</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/array/functions/array-intersect.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/array/functions/array-intersect.xml diff -u phpdoc-kr/reference/array/functions/array-intersect.xml:1.5 phpdoc-kr/reference/array/functions/array-intersect.xml:1.6 --- phpdoc-kr/reference/array/functions/array-intersect.xml:1.5 Sun Nov 9 18:31:46 2008 +++ phpdoc-kr/reference/array/functions/array-intersect.xml Thu Dec 11 10:13:04 2008 @@ -1,39 +1,84 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.9 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.array-intersect" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>array_intersect</refname> - <refpurpose>배열의 중복을 계산한다</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>array</type><methodname>array_intersect</methodname> - <methodparam><type>array</type><parameter>array1</parameter></methodparam> - <methodparam><type>array</type><parameter>array2</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> - </methodsynopsis> - <para> - <function>array_intersect</function>는 모든 인수에 존재하는 - <parameter>array1</parameter>의 모든 값을 포함하는 배열을 반환한다. - 키는 보존된다는 것에 주의할것. - </para> - <para> - <example> - <title><function>array_intersect</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.14 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.array-intersect" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>array_intersect</refname> + <refpurpose>배열의 교집합을 계산</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>array_intersect</methodname> + <methodparam><type>array</type><parameter>array1</parameter></methodparam> + <methodparam><type>array</type><parameter>array2</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> + </methodsynopsis> + <para> + <function>array_intersect</function>는 모든 인수에 존재하는 + <parameter>array1</parameter>의 모든 값을 포함하는 배열을 반환한다. + 키는 보존된다는 것에 주의할것. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array1</parameter></term> + <listitem> + <para> + 확인할 주 값을 가진 배열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>array2</parameter></term> + <listitem> + <para> + 값을 비교할 배열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + 비교할 배열의 가변 목록. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 모든 인수에 값이 존재하는 <parameter>array1</parameter>의 값을 가지는 + 배열을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>array_intersect</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -$array1 = array ("a" => "green", "red", "blue"); -$array2 = array ("b" => "green", "yellow", "red"); -$result = array_intersect ($array1, $array2); +$array1 = array("a" => "green", "red", "blue"); +$array2 = array("b" => "green", "yellow", "red"); +$result = array_intersect($array1, $array2); +print_r($result); ?> ]]> - </programlisting> - <para> - 위 예제코드는 <varname>$result</varname>가 다음 값을 갖게 한다. - </para> - <screen role="php"> + </programlisting> + &example.outputs; + <screen role="php"> <![CDATA[ Array ( @@ -41,24 +86,34 @@ [0] => red ) ]]> - </screen> - </example> - </para> - <note> - <simpara> - 두 구성요소가 동치라고 볼수 있는 때는 - <literal>(string) $elem1 === (string) $elem2</literal> 일때 만이다. - In words: when the string representation is the same. - <!-- TODO: example of it... --> - </simpara> - </note> - <para> - <function>array_intersect_assoc</function>, - <function>array_diff</function>, - <function>array_diff_assoc</function> 참고. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <simpara> + 두 구성요소가 동치라고 볼수 있는 때는 + <literal>(string) $elem1 === (string) $elem2</literal> 일때 만이다. + In words: when the string representation is the same. + <!-- TODO: example of it... --> + </simpara> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>array_intersect_assoc</function></member> + <member><function>array_diff</function></member> + <member><function>array_diff_assoc</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/array/functions/array-pad.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/array/functions/array-pad.xml diff -u phpdoc-kr/reference/array/functions/array-pad.xml:1.5 phpdoc-kr/reference/array/functions/array-pad.xml:1.6 --- phpdoc-kr/reference/array/functions/array-pad.xml:1.5 Sat Jun 23 13:51:37 2007 +++ phpdoc-kr/reference/array/functions/array-pad.xml Thu Dec 11 10:13:04 2008 @@ -1,55 +1,110 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.6 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.array-pad" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>array_pad</refname> - <refpurpose> - 설정된 길이만큼 특정 값으로 배열을 채운다 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>array</type><methodname>array_pad</methodname> - <methodparam><type>array</type><parameter>input</parameter></methodparam> - <methodparam><type>int</type><parameter>pad_size</parameter></methodparam> - <methodparam><type>mixed</type><parameter>pad_value</parameter></methodparam> - </methodsynopsis> - <para> - <function>array_pad</function>는 <parameter>pad_value</parameter> 값을 - <parameter>pad_size</parameter> 로 설정된 길이만큼을 채워넣은 - <parameter>input</parameter>의 복사본을 반환한다. - <parameter>pad_size</parameter>가 양수이면 배열의 오른쪽에 채워지고, - 음수이면 왼쪽에 채워지게 된다. <parameter>pad_size</parameter>의 절대값이 - <parameter>input</parameter>의 길이보다 작거나 같으면 패딩(padding)은 - 일어나지 않는다. - </para> - <para> - <example> - <title><function>array_pad</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.array-pad" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>array_pad</refname> + <refpurpose>지정한 길이만큼 특정 값으로 배열 채우기</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>array_pad</methodname> + <methodparam><type>array</type><parameter>input</parameter></methodparam> + <methodparam><type>int</type><parameter>pad_size</parameter></methodparam> + <methodparam><type>mixed</type><parameter>pad_value</parameter></methodparam> + </methodsynopsis> + <para> + <function>array_pad</function>는 <parameter>pad_value</parameter> 값을 + <parameter>pad_size</parameter> 로 설정된 길이만큼을 채워넣은 + <parameter>input</parameter>의 복사본을 반환한다. + <parameter>pad_size</parameter>가 양수이면 배열의 오른쪽에 채워지고, + 음수이면 왼쪽에 채워지게 된다. <parameter>pad_size</parameter>의 절대값이 + <parameter>input</parameter>의 길이보다 작거나 같으면 패딩(padding)은 + 일어나지 않는다. + 한번에 1048576 원소까지 추가할 수 있습니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>input</parameter></term> + <listitem> + <para> + 값을 채울 초기 배열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>pad_size</parameter></term> + <listitem> + <para> + 배열의 새 크기. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>pad_value</parameter></term> + <listitem> + <para> + <parameter>input</parameter>이 <parameter>pad_size</parameter>보다 + 작으면 채울 값. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 지정한 <parameter>pad_size</parameter>만큼 + <parameter>pad_value</parameter>로 채운 <parameter>input</parameter>의 + 사본을 반환합니다. <parameter>pad_size</parameter>가 양수이면 배열 오른쪽에 + 채우고, 음수이면 왼쪽에 채웁니다. pad_size의 절대값이 input의 크기보다 + 작거나 같으면 채우지 않습니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>array_pad</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -$input = array (12, 10, 9); +$input = array(12, 10, 9); -$result = array_pad ($input, 5, 0); -// result is array (12, 10, 9, 0, 0) +$result = array_pad($input, 5, 0); +// result is array(12, 10, 9, 0, 0) -$result = array_pad ($input, -7, -1); -// result is array (-1, -1, -1, -1, 12, 10, 9) +$result = array_pad($input, -7, -1); +// result is array(-1, -1, -1, -1, 12, 10, 9) -$result = array_pad ($input, 2, "noop"); +$result = array_pad($input, 2, "noop"); // not padded ?> ]]> - </programlisting> - </example> - </para> - <para> - <function>array_fill</function>, <function>range</function> 참고. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>array_fill</function></member> + <member><function>range</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/array/functions/array-pop.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/array/functions/array-pop.xml diff -u phpdoc-kr/reference/array/functions/array-pop.xml:1.5 phpdoc-kr/reference/array/functions/array-pop.xml:1.6 --- phpdoc-kr/reference/array/functions/array-pop.xml:1.5 Sun Nov 16 19:51:41 2008 +++ phpdoc-kr/reference/array/functions/array-pop.xml Thu Dec 11 10:13:04 2008 @@ -1,41 +1,72 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.array-pop" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>array_pop</refname> - <refpurpose>배열 끝의 원소를 뽑아낸다</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>mixed</type><methodname>array_pop</methodname> - <methodparam><type>array</type><parameter>array</parameter></methodparam> - </methodsynopsis> - <para> - <function>array_pop</function>은 <parameter>array</parameter>의 마지막값을 - 뽑아 내고 그 값을 반환하며, <parameter>array</parameter>의 길이를 원소 하나 - 만큼 줄인다. <parameter>array</parameter>가 비어있으면 (또는 배열이 아니면) - &null;을 반환한다. - </para> - - &array.resetspointer; - - <para> - <example> - <title><function>array_pop</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.15 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.array-pop" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>array_pop</refname> + <refpurpose>배열의 마지막 원소 빼내기</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>array_pop</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + </methodsynopsis> + <para> + <function>array_pop</function>은 <parameter>array</parameter>의 마지막 값을 + 빼내고 그 값을 반환하며, <parameter>array</parameter>의 길이를 원소 하나 + 만큼 줄인다. <parameter>array</parameter>가 비어있으면 (또는 배열이 아니면) + &null;을 반환한다. 배열이 아닌 것으로 호출하면, <link + linkend="errorfunc.constants.errorlevels.e-warning">경고</link>가 + 발생합니다. + </para> + &array.resetspointer; + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + 값을 얻을 배열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>array</parameter>의 마지막 값을 반환합니다. + <parameter>array</parameter>가 비어있으면(또는 배열이 아니면) &null;을 + 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>array_pop</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -$stack = array ("orange", "banana", "apple", "raspberry"); -$fruit = array_pop ($stack); +$stack = array("orange", "banana", "apple", "raspberry"); +$fruit = array_pop($stack); print_r($stack); ?> ]]> - </programlisting> - <para> - 이 코드 수행후, <varname>$stack</varname>은 3개의 원소를 갖게될것이다: - </para> - <screen role="php"> + </programlisting> + <para> + 이 코드 수행후, <varname>$stack</varname>은 3개의 원소를 갖게될것이다: + </para> + <screen role="php"> <![CDATA[ Array ( @@ -44,21 +75,24 @@ [2] => apple ) ]]> - </screen> - <para> - 그리고 <literal>raspberry</literal>는 <varname>$fruit</varname>값이 - 된다. - </para> - </example> - </para> - &return.falseproblem; + </screen> <para> - <function>array_push</function>, - <function>array_shift</function>, - <function>array_unshift</function> 참고. + 그리고 <literal>raspberry</literal>가 <varname>$fruit</varname>에 + 할당됩니다. </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <function>array_push</function>, + <function>array_shift</function>, + <function>array_unshift</function> 참고. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/classobj/functions/is-a.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/classobj/functions/is-a.xml diff -u phpdoc-kr/reference/classobj/functions/is-a.xml:1.4 phpdoc-kr/reference/classobj/functions/is-a.xml:1.5 --- phpdoc-kr/reference/classobj/functions/is-a.xml:1.4 Tue Nov 25 07:10:26 2008 +++ phpdoc-kr/reference/classobj/functions/is-a.xml Thu Dec 11 10:13:04 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.10 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> <refentry xml:id="function.is-a" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>is_a</refname> @@ -54,6 +54,30 @@ 반환합니다. </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.3.0</entry> + <entry> + 이 함수는 배제되지 않고, <literal>E_STRICT</literal> 경고가 발생하지 + 않습니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/info/ini.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-kr/reference/info/ini.xml diff -u phpdoc-kr/reference/info/ini.xml:1.8 phpdoc-kr/reference/info/ini.xml:1.9 --- phpdoc-kr/reference/info/ini.xml:1.8 Sun Nov 30 08:40:29 2008 +++ phpdoc-kr/reference/info/ini.xml Thu Dec 11 10:13:04 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.24 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.25 Maintainer: progcom Status: ready --> <section xml:id="info.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; @@ -242,7 +242,7 @@ <type>boolean</type> </term> <listitem> - &warn.deprecated.removed-6-0-0; + &warn.deprecated.feature-5-3-0.removed-6-0-0; <para> GPC (Get/Post/쿠키) 작동의 magic_quotes 상태를 설정합니다. magic_quotes가 on이면, 모든 ' (작은 따옴표), &quot; (큰 따옴표), \ @@ -273,7 +273,7 @@ <type>boolean</type> </term> <listitem> - &warn.deprecated.removed-6-0-0; + &warn.deprecated.feature-5-3-0.removed-6-0-0; <para> <parameter>magic_quotes_runtime</parameter>를 활성화하면, 데이터베이스나 텍스트 파일를 포함한, 어떠한 외부 소스에서 데이터를 가져오는 대부분의
« previous php.doc.kr (#809) next »