cvs: phpdoc-kr /faq com.xml languages.xml mailinglist.xml obtaining.xml /reference/dir/functions opendir.xml /reference/math/functions bindec.xml
hexdec.xml max.xml min.xml mt-rand.xml octdec.xml rand.xml

From: Date: Wed, 19 Nov 2008 14:41:35 +0000
Subject: cvs: phpdoc-kr /faq com.xml languages.xml mailinglist.xml obtaining.xml /reference/dir/functions opendir.xml /reference/math/functions bindec.xml
hexdec.xml max.xml min.xml mt-rand.xml octdec.xml rand.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-781@lists.php.net to get a copy of this message
progcom Wed Nov 19 14:41:35 2008 UTC Modified files: /phpdoc-kr/faq com.xml languages.xml mailinglist.xml obtaining.xml /phpdoc-kr/reference/dir/functions opendir.xml /phpdoc-kr/reference/math/functions bindec.xml hexdec.xml max.xml min.xml mt-rand.xml octdec.xml rand.xml Log: sync

http://cvs.php.net/viewvc.cgi/phpdoc-kr/faq/com.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/faq/com.xml diff -u phpdoc-kr/faq/com.xml:1.5 phpdoc-kr/faq/com.xml:1.6 --- phpdoc-kr/faq/com.xml:1.5 Sun Nov 9 18:31:46 2008 +++ phpdoc-kr/faq/com.xml Wed Nov 19 14:41:35 2008 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.10 Maintainer: fuzzy74 Status: ready --> +<!-- EN-Revision: 1.13 Maintainer: progcom Status: ready --> +<!-- CREDITS: fuzzy74 --> <chapter xml:id="faq.com" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PHP와 COM</title> <titleabbrev>PHP와 COM</titleabbrev> <para> - PHP는 Win32 플랫폼의 COM과 DCOM 객체(object)에 접근할수 있습니다. + PHP는 Win32 플랫폼의 COM과 DCOM 객체에 접근할수 있습니다. </para> <qandaset> @@ -66,8 +66,8 @@ </question> <answer> <para> - 그건 안됩니다. COM 인스턴스(instance)는 리소스로 취급되므로 오직 단일 스크립트의 - 컨텍스트(context)에서만 가용한것입니다. + 그건 안됩니다. COM 인스턴스는 리소스로 취급되므로 오직 단일 스크립트의 + 문맥에서만 가용한것입니다. </para> </answer> </qandaentry> @@ -80,8 +80,13 @@ </question> <answer> <para> - 현재 PHP 자체에서 제공되는 방법(@, track_errors, ..)으로는 COM 에러를 추적하기는 불가능합니다. - 하지만 이것을 구현할 방법을 강구중입니다. + PHP 5에서, COM 확장은 <literal>com_exception</literal> 예외를 + 발생합니다. 이를 잡아서 <literal>code</literal> 멤버를 조사함으로써 + 다음에 취할 행동을 결정할 수 있습니다. + </para> + <para> + PHP 4에서는 COM 오류를 PHP 자체에서 제공하는 방법(@, track_errors, + ..)으로 추적할 수 없습니다. </para> </answer> </qandaentry> @@ -133,16 +138,18 @@ <qandaentry xml:id="faq.com.q8"> <question> <para> - 다른 서버(remote server)에서 COM 객체(object)를 어떻게 실행할수 있습니까? + 원격 서버에서 COM 객체를 어떻게 실행할수 있습니까? </para> </question> <answer> <para> - 로컬 객체를 실행시키는것과 완전히 똑같습니다. 단지 COM 생성자(constructor)의 두번째 인수(parameter)에 + 로컬 객체를 실행시키는것과 완전히 똑같습니다. 단지 COM 생성자의 두번째 인수에 다른 서버의 IP를 넘겨주면 됩니다. </para> <para> - &php.ini;파일 내에서 <literal>com.allow_dcom=true</literal>값을 설정해야 한다는것을 잊지마십시오 + &php.ini;파일 내에서 <xref + linkend="ini.com.allow-dcom"/><literal>=</literal>&true;로 값을 설정해야 + 합니다. </para> </answer> </qandaentry> @@ -156,7 +163,8 @@ </question> <answer> <para> - &php.ini;파일 내에서 <literal>com.allow_dcom=true</literal>로 설정합니다. + &php.ini;를 수정하여 <xref + linkend="ini.com.allow-dcom"/><literal>=</literal>&true;로 설정합니다. </para> </answer> </qandaentry> @@ -164,7 +172,7 @@ <qandaentry xml:id="faq.com.q10"> <question> <para> - PHP에서 ActiveX 객체(object)를 부르거나/변경할수 있습니까? + PHP에서 ActiveX 객체를 부르거나/변경할수 있습니까? </para> </question> <answer> @@ -179,7 +187,7 @@ <qandaentry xml:id="faq.com.q11"> <question> <para> - 특정 컴포넌트에서 실행중인 인스턴스(instance)에 접근 가능합니까? + 특정 컴포넌트에서 실행중인 인스턴스에 접근 가능합니까? </para> </question> <answer> @@ -188,7 +196,11 @@ 다음처럼 그 인스턴스를 만들 수 있습니다. </para> <programlisting role="php"> - $word = new COM("C:\docs\word.doc"); +<![CDATA[ +<?php +$word = new COM("C:\docs\word.doc"); +?> +]]> </programlisting> <para> 위처럼 하면 실행중인 인스턴스가 없을 때에는 새로운 인스턴스를 만들수 있고, @@ -196,7 +208,6 @@ </para> </answer> </qandaentry> - <qandaentry xml:id="faq.com.q12"> <question> <para> @@ -205,43 +216,9 @@ </question> <answer> <para> - PHP 4.3.0을 실행하면, 아래 예제에서 볼수 있듯이 이벤트를 싱크(sink), 연결(bind) - 할 수 있도록 정의할 수 있습니다. <function>com_print_typeinfo</function>함수를 실행함으로써 - 이벤트 싱크(sink) 클래스에 대한 코드를 만들수 있습니다. - <example> - <title>COM event sink example</title> - <programlisting role="php"> -<![CDATA[ -<?php -class IEEventSinker { - var $terminated = false; - - function ProgressChange($progress, $progressmax) { - echo "Download progress: $progress / $progressmax\n"; - } - - function DocumentComplete(&$dom, $url) { - echo "Document $url complete\n"; - } - - function OnQuit() { - echo "Quit!\n"; - $this->terminated = true; - } -} -$ie = new COM("InternetExplorer.Application"); -$sink =& new IEEventSinker(); -com_event_sink($ie, $sink, "DWebBrowserEvents2"); -$ie->Visible = true; -$ie->Navigate("http://www.php.net"); -while(!$sink->terminated) { - com_message_pump(4000); -} -$ie = null; -?> -]]> - </programlisting> - </example> + <function>com_event_sink</function>를 사용하여 이벤트 싱크와 바인드를 + 정의할 수 있습니다. PHP가 이벤트 싱크 클래스의 뼈대을 생성하게 하기 + 위하여 <function>com_print_typeinfo</function>를 사용할 수 있습니다. </para> </answer> </qandaentry> @@ -249,7 +226,7 @@ <qandaentry xml:id="faq.com.q13"> <question> <para> - 하나 이상의 인터페이스를 갖는 COM 객체의 메소드(method)를 불러 + 하나 이상의 인터페이스를 갖는 COM 객체의 메쏘드를 불러 들이려고 하는데 문제에 봉착했습니다. 어떻게 해야 합니까? </para> </question> @@ -284,8 +261,8 @@ </question> <answer> <para> - PHP자체로는 아직 트랜젝션(transaction)을 관리할수 없습니다. - 따라서 에러가 발생하더라도 롤백(rollback)으로 초기화되지않습니다. + PHP 자체로는 아직 트랜젝션을 관리할수 없습니다. + 따라서 에러가 발생하더라도 롤백으로 초기화되지않습니다. 트랜젝션을 지원하는 컴포넌트를 사용한다면 트랜젝션 관리를 구현해서 써야합니다. </para> </answer> http://cvs.php.net/viewvc.cgi/phpdoc-kr/faq/languages.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/faq/languages.xml diff -u phpdoc-kr/faq/languages.xml:1.3 phpdoc-kr/faq/languages.xml:1.4 --- phpdoc-kr/faq/languages.xml:1.3 Sat Jun 23 13:51:36 2007 +++ phpdoc-kr/faq/languages.xml Wed Nov 19 14:41:35 2008 @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.12 Maintainer: fuzzy74 Status: ready --> +<!-- EN-Revision: 1.15 Maintainer: fuzzy74 Status: ready --> <chapter xml:id="faq.languages" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PHP와 다른 프로그래밍 언어</title> <titleabbrev>PHP와 다른 프로그래밍 언어</titleabbrev> @@ -23,7 +22,7 @@ 이 점으로 인해 ASP를 Win32기반 서버로 제한하게 됩니다. 다른 환경이나 웹서버에서 ASP를 작동하게 하는 몇개의 프로젝트가 진행중입니다: <link xlink:href="&url.halcyon;">Halcyon</link>의 <link xlink:href="&url.instantasp;">InstantASP</link> (상업용), - <link xlink:href="&url.chilisoft;">Chili!Soft</link>의 <link xlink:href="&url.chilisoft.asp;">Chili!Soft ASP</link> (상업용) + <link xlink:href="&url.chilisoft;">Chili!Soft</link>의 Chili!Soft ASP (상업용) ASP는 PHP보다 느리고 성가신 언어이며, 약간은 불안정하기까지 합니다. ASP의 문법(pros)은 그것이 VBScript를 사용하고 있기 때문에 만약에 비주얼 베이직(Visual Basic)을 다룰줄만 안다면 상대적으로 접근하기 쉽습니다. 또한 ASP는 IIS가 ASP를 올리고 @@ -67,7 +66,9 @@ </para> <para> 이 주제에 관해 Michael J Sheldon이 정리한 글이 PHP 메일링리스트에 - 게제되었습니다. <link xlink:href="&url.coldfusion.summary;"></link>를 보세요. + 게제되었습니다. <link + xlink:href="&url.coldfusion.summary;">&url.coldfusion.summary;</link>에서 + 사본을 볼 수 있습니다. </para> </answer> </qandaentry> http://cvs.php.net/viewvc.cgi/phpdoc-kr/faq/mailinglist.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/faq/mailinglist.xml diff -u phpdoc-kr/faq/mailinglist.xml:1.4 phpdoc-kr/faq/mailinglist.xml:1.5 --- phpdoc-kr/faq/mailinglist.xml:1.4 Sun Jun 24 21:12:32 2007 +++ phpdoc-kr/faq/mailinglist.xml Wed Nov 19 14:41:35 2008 @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.16 Maintainer: fuzzy74 Status: ready --> +<!-- EN-Revision: 1.18 Maintainer: fuzzy74 Status: ready --> <chapter xml:id="faq.mailinglist" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>메일링리스트</title> <titleabbrev>메일링리스트</titleabbrev> @@ -18,7 +17,7 @@ <answer> <para> 여러가지 목적을 위한 메일링리스트가 있습니다. - 메일링리스트의 전체 목록은 <link xlink:href="&url.php.support;">Support</link> + 메일링리스트의 전체 목록은 <link xlink:href="&url.php.support;">지원</link> 페이지에서 볼 수 있습니다. </para> <para> @@ -29,7 +28,7 @@ 메일을 보냅니다. </para> <para> - <link xlink:href="&url.php.support;">Support</link>페이지의 웹인터페이스를 + <link xlink:href="&url.php.support;">지원</link>페이지의 웹인터페이스를 통해서 구독요청(subscribe)이나 구독취소(unsubscribe)를 할수 있습니다. </para> </answer> @@ -42,7 +41,7 @@ <answer> <para> 전세계에 셀수없이 존재합니다. 우리는 예를 들어 몇몇의 IRC 서버와 - 외국어 메일링리스트에 대한 목록을 <link xlink:href="&url.php.support;">Support</link> + 외국어 메일링리스트에 대한 목록을 <link xlink:href="&url.php.support;">지원</link> 페이지에 제공하고 있습니다. </para> </answer> @@ -72,7 +71,7 @@ </question> <answer> <para> - <link xlink:href="&url.php.support;">Support</link>페이지에서 archive sites 목록을 + <link xlink:href="&url.php.support;">지원</link>페이지에서 archive sites 목록을 발견할수 있습니다. 메일링리스트 기사는 뉴스 메시지로도 저장이 됩니다. 뉴스리더로 <link xlink:href="&url.php.news;">&url.php.news;</link> 뉴스서버에 접속할수 있습니다. 뉴스서버를 위한 실험적인 웹 인터페이스도 또한 존재합니다. http://cvs.php.net/viewvc.cgi/phpdoc-kr/faq/obtaining.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/faq/obtaining.xml diff -u phpdoc-kr/faq/obtaining.xml:1.5 phpdoc-kr/faq/obtaining.xml:1.6 --- phpdoc-kr/faq/obtaining.xml:1.5 Thu Nov 13 15:40:53 2008 +++ phpdoc-kr/faq/obtaining.xml Wed Nov 19 14:41:35 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.20 Maintainer: fuzzy74 Status: ready --> +<!-- EN-Revision: 1.23 Maintainer: fuzzy74 Status: ready --> <chapter xml:id="faq.obtaining" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PHP 구하기</title> <titleabbrev>PHP 구하기</titleabbrev> @@ -64,18 +64,13 @@ </listitem> <listitem> <simpara> - <link xlink:href="&url.ldap.mt;">LDAP* (Unix)</link>. + <link xlink:href="&url.ldap.netscape.sdk;">LDAP (Unix/Win)</link> : + Mozilla Directory (LDAP) SDK </simpara> </listitem> <listitem> <simpara> - <link xlink:href="&url.ldap.netscape.sdk;">LDAP (Unix/Win)</link> : - Netscape Directory (LDAP) SDK 1.1. - </simpara> - </listitem> - <listitem> - <simpara> - <link xlink:href="&url.ldap.netscape.sdk;">free LDAP server</link>. + <link xlink:href="&url.ldap.bind9;">free LDAP server</link>. </simpara> </listitem> <listitem> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/dir/functions/opendir.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/dir/functions/opendir.xml diff -u phpdoc-kr/reference/dir/functions/opendir.xml:1.6 phpdoc-kr/reference/dir/functions/opendir.xml:1.7 --- phpdoc-kr/reference/dir/functions/opendir.xml:1.6 Mon Nov 10 07:09:23 2008 +++ phpdoc-kr/reference/dir/functions/opendir.xml Wed Nov 19 14:41:35 2008 @@ -1,37 +1,109 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> - <refentry xml:id="function.opendir" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>opendir</refname> - <refpurpose>디렉토리 핸들을 엽니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>resource</type><methodname>opendir</methodname> - <methodparam><type>string</type><parameter>path</parameter></methodparam> - </methodsynopsis> - <para> - <function>closedir</function>, <function>readdir</function>, - <function>rewinddir</function> 호출에서 사용하는 디렉토리 핸들을 - 반환합니다. - </para> - <para> - <parameter>path</parameter>가 유효하지 않은 디렉토리이거나, 권한 제한이나 - 파일시스템 에러로 인해 디렉토리를 열 수 없는 경우, - <function>opendir</function>은 &false;를 반환하고 <link - linkend="errorfunc.constants">E_WARNING</link> 레벨의 PHP 에러를 - 발생합니다. <function>opendir</function> 앞에 '<link - linkend="language.operators.errorcontrol">@</link>'를 붙여 에러 출력을 - 없앨 수 있습니다. - </para> - <para> - <example> - <title><function>opendir</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.16 Maintainer: progcom Status: ready --> +<refentry xml:id="function.opendir" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>opendir</refname> + <refpurpose>디렉토리 핸들을 엽니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>resource</type><methodname>opendir</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> + </methodsynopsis> + <para> + <function>closedir</function>, <function>readdir</function>, + <function>rewinddir</function> 호출에서 사용하는 디렉토리 핸들을 + 엽니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>path</parameter></term> + <listitem> + <para> + 열 디렉토리 경로 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>context</parameter></term> + <listitem> + <para> + <parameter>context</parameter> 인수에 대한 설명은 매뉴얼의 <link + linkend="ref.stream">스트림 섹션</link>을 참고하십시오. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 디렉토리 핸들 <type>resource</type>, 실패시엔 &false;를 + 반환합니다. + </para> + <para> + <parameter>path</parameter>가 유효하지 않은 디렉토리이거나, 권한 제한이나 + 파일시스템 오류로 인해 디렉토리를 열 수 없는 경우, + <function>opendir</function>은 &false;를 반환하고 <link + linkend="errorfunc.constants">E_WARNING</link> 레벨의 PHP 오류를 + 발생합니다. <function>opendir</function> 앞에 '<link + linkend="language.operators.errorcontrol">@</link>'를 붙여 오류 출력을 + 없앨 수 있습니다. + </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.0.0</entry> + <entry> + <parameter>path</parameter>가 <literal>ftp://</literal> URL 래퍼를 + 지원합니다. + </entry> + </row> + <row> + <entry>4.3.0</entry> + <entry> + <parameter>path</parameter>에 디렉토리 목록을 지원하는 URL을 사용할 수 + 있습니다. 그러나 PHP 4에서는 <literal>file://</literal> URL 래퍼만 + 지원합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>opendir</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -$dir = "/tmp/"; +$dir = "/etc/php5"; // 알고 있는 디렉토리를 열어서, 내용을 읽어들이는 작업입니다. if (is_dir($dir)) { @@ -44,22 +116,32 @@ } ?> ]]> - </programlisting> - </example> - </para> - <para> - <literal>PHP 4.3.0</literal>부터 <parameter>path</parameter>는 디렉토리 - 목록을 지원하는 URL일 수 있지만, <literal>PHP 4.3</literal>에서는 - <literal>file://</literal> URL 래퍼만 지원합니다. <literal>PHP - 5.0.0</literal>부터는 <literal>ftp://</literal> URL 래퍼도 지원합니다. - </para> - <para> - 참고: <function>is_dir</function>, - <function>readdir</function>, - <link linkend="class.dir">Dir</link> - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +filename: . : filetype: dir +filename: .. : filetype: dir +filename: apache : filetype: dir +filename: cgi : filetype: dir +filename: cli : filetype: dir +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>is_dir</function></member> + <member><function>readdir</function></member> + <member><link linkend="class.dir">Dir</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/math/functions/bindec.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/reference/math/functions/bindec.xml diff -u phpdoc-kr/reference/math/functions/bindec.xml:1.7 phpdoc-kr/reference/math/functions/bindec.xml:1.8 --- phpdoc-kr/reference/math/functions/bindec.xml:1.7 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/math/functions/bindec.xml Wed Nov 19 14:41:35 2008 @@ -1,29 +1,76 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.bindec" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>bindec</refname> - <refpurpose>2진수를 10진수로 변환합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>bindec</methodname> - <methodparam><type>string</type><parameter>binary_string</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>binary_string</parameter> 인수에 표현된 2진수와 - 동일한 10진수를 반환합니다. - </para> - <para> - <function>bindec</function>는 이진수를 <type>integer</type>로 - 변환합니다. 변환 가능한 가장 큰 숫자는 1의 31비트로, - 10진수 2147483647에 해당합니다. - </para> - <para> - <example> - <title><function>bindec</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.bindec" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>bindec</refname> + <refpurpose>2진수를 10진수로</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>number</type><methodname>bindec</methodname> + <methodparam><type>string</type><parameter>binary_string</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>binary_string</parameter> 인수에 표현된 2진수와 + 동일한 10진수를 반환합니다. + </para> + <para> + <function>bindec</function>는 2진수를 <type>integer</type>로, 크기가 + 필요하다면 <type>float</type>로 변환합니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>binary_string</parameter></term> + <listitem> + <para> + 변환할 2진 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>binary_string</parameter>의 10진 값 + </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.1.0부터</entry> + <entry> + 플랫폼의 <type>integer</type>형에 들어가지 않은 큰 수도 변환할 수 있게 + 되었습니다. 큰 수는 <type>float</type>로 반환합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>bindec</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo bindec('110011') . "\n"; @@ -32,25 +79,30 @@ echo bindec('111'); ?> ]]> - </programlisting> - <para> - 위 예제의 출력은: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 51 51 7 ]]> - </screen> - </example> - </para> - <para> - 참고: <function>decbin</function>, <function>octdec</function>, - <function>hexdec</function>, <function>base_convert</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>decbin</function></member> + <member><function>octdec</function></member> + <member><function>hexdec</function></member> + <member><function>base_convert</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/math/functions/hexdec.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-kr/reference/math/functions/hexdec.xml diff -u phpdoc-kr/reference/math/functions/hexdec.xml:1.9 phpdoc-kr/reference/math/functions/hexdec.xml:1.10 --- phpdoc-kr/reference/math/functions/hexdec.xml:1.9 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/math/functions/hexdec.xml Wed Nov 19 14:41:35 2008 @@ -1,28 +1,76 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> - <refentry xml:id="function.hexdec" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>hexdec</refname> - <refpurpose>16진수를 10진수로 변환합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>hexdec</methodname> - <methodparam><type>string</type><parameter>hex_string</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>hex_string</parameter> 인수에 표현된 16진수와 - 동등한 10진수를 반환합니다. - <function>hexdec</function>는 16진수 문자열을 10진수 숫자로 변환합니다. - 변환 가능한 가장 큰 수는 7fffffff로, 10진수 2147483647에 해당합니다. - </para> - <para> - <function>hexdec</function>는 16진수를 나타내는 문자가 아닌 모든 문자를 - 무시합니다. - <example> - <title><function>hexdec</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.14 Maintainer: progcom Status: ready --> +<refentry xml:id="function.hexdec" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>hexdec</refname> + <refpurpose>16진수를 10진수로</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>number</type><methodname>hexdec</methodname> + <methodparam><type>string</type><parameter>hex_string</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>hex_string</parameter> 인수에 표현된 16진수와 + 동등한 10진수를 반환합니다. + </para> + <para> + <function>hexdec</function>는 16진수를 나타내는 문자가 아닌 모든 문자를 + 무시합니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>hex_string</parameter></term> + <listitem> + <para> + 변환할 16진 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>hex_string</parameter>의 10진 표현 + </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.1.0부터</entry> + <entry> + 플랫폼의 <type>integer</type>형에 들어가지 않은 큰 수도 변환할 수 있게 + 되었습니다. 큰 수는 <type>float</type>로 반환합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>hexdec</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php var_dump(hexdec("See")); @@ -33,17 +81,22 @@ var_dump(hexdec("a0")); // "int(160)"을 출력합니다. ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>dechex</function>, - <function>bindec</function>, - <function>octdec</function>, - <function>base_convert</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>dechex</function></member> + <member><function>bindec</function></member> + <member><function>octdec</function></member> + <member><function>base_convert</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/math/functions/max.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/math/functions/max.xml diff -u phpdoc-kr/reference/math/functions/max.xml:1.6 phpdoc-kr/reference/math/functions/max.xml:1.7 --- phpdoc-kr/reference/math/functions/max.xml:1.6 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/math/functions/max.xml Wed Nov 19 14:41:35 2008 @@ -1,46 +1,65 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.max" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>max</refname> - <refpurpose>최고값을 찾습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>mixed</type><methodname>max</methodname> - <methodparam><type>number</type><parameter>arg1</parameter></methodparam> - <methodparam><type>number</type><parameter>arg2</parameter></methodparam> - <methodparam choice="opt"><type>number</type><parameter>...</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>mixed</type><methodname>max</methodname> - <methodparam><type>array</type><parameter>numbers</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> - </methodsynopsis> - <para> - <function>max</function>는 인수 중 수치적인 최고값을 반환합니다. - </para> - <para> - 첫번째 인수만이 배열이라면, <function>max</function>는 그 배열에서의 - 최고값을 반환합니다. 첫번째 인수가 정수, 문자열, 혹은 실수일 경우 - 최소한 2개의 인수가 필요하며, <function>max</function>는 그 중에 - 최고값을 반환합니다. 비교할 수 있는 값의 수는 무제한입니다. - </para> - <note> - <para> - PHP는 숫자가 아닌 <type>string</type>은 <literal>0</literal>으로 - 계산하지만, 그것이 가장 큰 값일 경우 그 문자열을 반환합니다. - <literal>0</literal>으로 계산된 여러 인수가 존재할 경우, - <function>max</function>는 가장 처음 나온 값을 사용합니다. - (가장 왼쪽의 값) - </para> - </note> - <para> - <example> - <title><function>max</function>의 사용 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.13 Maintainer: progcom Status: ready --> +<refentry xml:id="function.max" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>max</refname> + <refpurpose>최고값을 찾습니다</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>max</methodname> + <methodparam><type>array</type><parameter>values</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>mixed</type><methodname>max</methodname> + <methodparam><type>mixed</type><parameter>value1</parameter></methodparam> + <methodparam><type>mixed</type><parameter>value2</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>value3...</parameter></methodparam> + </methodsynopsis> + <para> + 하나의 인수만 배열로 주어지면, <function>max</function>는 그 배열에서의 + 최고값을 반환합니다. + 최소한 두 개의 인수가 주어지면, <function>max</function>는 그 중에 + 최고값을 반환합니다. + </para> + <note> + <para> + PHP는 숫자가 아닌 <type>string</type>은 <type>integer</type>와 비교할 때 <literal>0</literal>으로 + 계산하지만, 그것이 가장 큰 값일 경우 그 문자열을 반환합니다. + <literal>0</literal>으로 계산된 여러 인수가 존재할 경우, + <function>max</function>는 존재할 경우 숫자 <literal>0</literal>을, + 아니라면 알파벳 숫자 값이 가장 큰 문자열을 반환합니다. + </para> + </note> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>values</parameter></term> + <listitem> + <para> + 값들을 가지는 배열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <function>max</function>는 수치적으로 가장 큰 인수 값을 반환합니다. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>max</function>의 사용 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo max(1, 3, 5, 6, 7); // 7 @@ -59,14 +78,20 @@ $val = max('string', array(2, 5, 7), 42); // array(2, 5, 7) ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>min</function>, <function>count</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>min</function></member> + <member><function>count</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/math/functions/min.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/reference/math/functions/min.xml diff -u phpdoc-kr/reference/math/functions/min.xml:1.7 phpdoc-kr/reference/math/functions/min.xml:1.8 --- phpdoc-kr/reference/math/functions/min.xml:1.7 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/math/functions/min.xml Wed Nov 19 14:41:35 2008 @@ -1,45 +1,66 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> - <refentry xml:id="function.min" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>min</refname> - <refpurpose>최소값을 찾습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>mixed</type><methodname>min</methodname> - <methodparam><type>number</type><parameter>arg1</parameter></methodparam> - <methodparam><type>number</type><parameter>arg2</parameter></methodparam> - <methodparam choice="opt"><type>number</type><parameter>...</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>mixed</type><methodname>min</methodname> - <methodparam><type>array</type><parameter>numbers</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> - </methodsynopsis> - <para> - <function>min</function>은 인수 중 수치적인 최소값을 반환합니다. - </para> - <para> - 단 하나의 인수가 배열로 주어지면, <function>min</function>은 배열에서 - 최소값을 반환합니다. 첫번째 인수가 정수, 문자열, 실수일 경우에는 최소한 - 2개의 인수가 필요하며, <function>min</function>은 이 값들 중 최소값을 - 반환합니다. 비교할 수 있는 값의 갯수는 무제한입니다. - </para> - <note> - <para> - PHP는 숫자가 아닌 <type>string</type>을 <literal>0</literal>으로 - 계산하고, 수치적으로 최소값일 경우에는 그 문자열을 반환합니다. - 복수의 인수가 <literal>0</literal>으로 계산될 경우, - <function>min</function>은 첫번째 것(가장 왼쪽의 값)을 반환합니다. - </para> - </note> - <para> - <example> - <title><function>min</function>의 사용 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> +<refentry xml:id="function.min" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>min</refname> + <refpurpose>최소값을 찾습니다</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>min</methodname> + <methodparam><type>array</type><parameter>values</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>mixed</type><methodname>min</methodname> + <methodparam><type>mixed</type><parameter>value1</parameter></methodparam> + <methodparam><type>mixed</type><parameter>value2</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>value3...</parameter></methodparam> + </methodsynopsis> + <para> + 단 하나의 인수가 배열로 주어지면, <function>min</function>은 배열에서 + 최소값을 반환합니다. 최소한 + 두 개의 인수가 주어지면, <function>min</function>은 이 값들 중 최소값을 + 반환합니다. + </para> + <note> + <para> + PHP는 수가 아닌 <type>string</type>을 <type>integer</type>로 취급하여 + <literal>0</literal>으로 계산하지만, 수치적으로 최소값일 경우에는 그 + 문자열을 반환합니다. + 복수의 인수가 <literal>0</literal>으로 계산될 경우, + <function>min</function>은 주어진 문자열 중 가장 낮은 알파벳-숫자 문자열 + 값을 가지는 문자열을 반환하거나, 숫자 <literal>0</literal>을 반환합니다. + </para> + </note> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>values</parameter></term> + <listitem> + <para> + 값들을 가지는 배열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <function>min</function>은 수치적으로 가장 낮은 인수 값을 반환합니다. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>min</function>의 사용 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo min(2, 3, 1, 6, 7)); // 1 @@ -57,14 +78,20 @@ $val = min('string', array(2, 5, 7), 42); // string ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>max</function>, <function>count</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>max</function></member> + <member><function>count</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/math/functions/mt-rand.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-kr/reference/math/functions/mt-rand.xml diff -u phpdoc-kr/reference/math/functions/mt-rand.xml:1.8 phpdoc-kr/reference/math/functions/mt-rand.xml:1.9 --- phpdoc-kr/reference/math/functions/mt-rand.xml:1.8 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/math/functions/mt-rand.xml Wed Nov 19 14:41:35 2008 @@ -1,36 +1,101 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> - <refentry xml:id="function.mt-rand" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>mt_rand</refname> - <refpurpose>향상된 난수를 생성합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>mt_rand</methodname> - <methodparam choice="opt"><type>int</type><parameter>min</parameter></methodparam> - <methodparam><type>int</type><parameter>max</parameter></methodparam> - </methodsynopsis> - <simpara> - 사용해 온 libc들의 많은 난수 생성기는 이상하거나, 특성을 알 수 없거나, - 느렸습니다. 기본적으로, PHP는 <function>rand</function> 함수에서 libc - 난수 생성기를 이용합니다. <function>mt_rand</function>는 이를 대체합니다. - <link xlink:href="&url.mersenne;">Mersenne Twister</link>를 사용하는 확실한 - 특성을 가진 난수 생성기를 이용합니다. 이것은 평균적인 libc 제공의 난수 - 생성기에 비해 4배 정도 빠릅니다. - </simpara> - <simpara> - 선택적인 <parameter>min</parameter>, <parameter>max</parameter> 인수 없이 - 호출하면, <function>mt_rand</function>는 0과 - <constant>RAND_MAX</constant> 사이의 모조 난수를 반환합니다. 예를 들어, - 5와 15(포함)사이의 난수를 원할 경우에는, <literal>mt_rand - (5, 15)</literal>로 사용합니다. - </simpara> - <para> - <example> - <title><function>mt_rand</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.17 Maintainer: progcom Status: ready --> +<refentry xml:id="function.mt-rand" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>mt_rand</refname> + <refpurpose>향상된 난수를 생성</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>mt_rand</methodname> + <void/> + </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>mt_rand</methodname> + <methodparam><type>int</type><parameter>min</parameter></methodparam> + <methodparam><type>int</type><parameter>max</parameter></methodparam> + </methodsynopsis> + <simpara> + 사용해 온 libc들의 많은 난수 생성기는 이상하거나, 특성을 알 수 없거나, + 느렸습니다. 기본적으로, PHP는 <function>rand</function> 함수에서 libc + 난수 생성기를 이용합니다. <function>mt_rand</function>는 이를 대체합니다. + <link xlink:href="&url.mersenne;">Mersenne Twister</link>를 사용하는 확실한 + 특성을 가진 난수 생성기를 이용합니다. 이것은 평균적인 libc 제공의 난수 + 생성기에 비해 4배 정도 빠릅니다. + </simpara> + <simpara> + 선택적인 <parameter>min</parameter>, <parameter>max</parameter> 인수 없이 + 호출하면, <function>mt_rand</function>는 0과 + <function>mt_getrandmax</function> 사이의 모조 난수를 반환합니다. 예를 들어, + 5와 15(포함)사이의 난수를 원할 경우에는, <literal>mt_rand(5, + 15)</literal>로 사용합니다. + </simpara> + &note.randomseed; + + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>min</parameter></term> + <listitem> + <para> + 선택적인 반환할 최소값 (기본값: 0) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>max</parameter></term> + <listitem> + <para> + 선택적인 반환할 최대값 (기본값: <function>mt_getrandmax</function>) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>min</parameter>(또는 0)과 <parameter>max</parameter>(또는 + <function>mt_getrandmax</function>, 포함) 사이의 임의 정수값 + </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>3.0.7부터</entry> + <entry> + 3.0.7 이전 버전에서 <parameter>max</parameter>의 의미는 + <parameter>range</parameter>였습니다. 이 버전에서 위의 짧은 예제처럼 + 5와 15 사이의 난수를 얻으려면 <literal>rand (5,11)</literal>을 + 사용해야 합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>mt_rand</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo mt_rand() . "\n"; @@ -39,38 +104,29 @@ echo mt_rand(5, 15); ?> ]]> - </programlisting> - <para> - 위 예제의 출력 예는: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ 1604716014 1478613278 6 ]]> - </screen> - </example> - </para> - - &note.randomseed; - - <note> - <para> - 3.0.7 이전 버전에서는 <parameter>max</parameter>의 의미는 - <parameter>range</parameter>였습니다. 이 버전에서 위에 든 예처럼 5에서 - 15 사이의 난수를 얻기 위해서는 <literal>mt_rand (5, 11)</literal>로 - 사용해야 합니다. - </para> - </note> - <simpara> - 참고: - <function>mt_srand</function>, - <function>mt_getrandmax</function>, - <function>rand</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mt_srand</function></member> + <member><function>mt_getrandmax</function></member> + <member><function>rand</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/math/functions/octdec.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/reference/math/functions/octdec.xml diff -u phpdoc-kr/reference/math/functions/octdec.xml:1.7 phpdoc-kr/reference/math/functions/octdec.xml:1.8 --- phpdoc-kr/reference/math/functions/octdec.xml:1.7 Sat Jun 23 13:51:40 2007 +++ phpdoc-kr/reference/math/functions/octdec.xml Wed Nov 19 14:41:35 2008 @@ -1,52 +1,101 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.octdec" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>octdec</refname> - <refpurpose>8진수를 10진수로 변환합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>octdec</methodname> - <methodparam><type>string</type><parameter>octal_string</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>octal_string</parameter> 인수로 주어진 8진수에 해당하는 - 10진수를 반환합니다. 변환 가능한 가장 큰 숫자는 17777777777로, - 10진수 2147483647에 해당합니다. - </para> - <para> - <example> - <title><function>octdec</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.octdec" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>octdec</refname> + <refpurpose>8진수를 10진수로</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>number</type><methodname>octdec</methodname> + <methodparam><type>string</type><parameter>octal_string</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>octal_string</parameter> 인수로 표현되는 8진수에 해당하는 + 10진수를 반환합니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>octal_string</parameter></term> + <listitem> + <para> + 변환할 8진 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>octal_string</parameter>의 10진 표현 + </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.1.0부터</entry> + <entry> + 플랫폼의 <type>integer</type>형에 들어가지 않은 큰 수도 변환할 수 있게 + 되었습니다. 큰 수는 <type>float</type>로 반환합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>octdec</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo octdec('77') . "\n"; echo octdec(decoct(45)); ?> ]]> - </programlisting> - <para> - 위 예제의 출력은: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 63 45 ]]> - </screen> - </example> - </para> - <para> - 참고: - <function>decoct</function>, - <function>bindec</function>, - <function>hexdec</function>, - <function>base_convert</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>decoct</function></member> + <member><function>bindec</function></member> + <member><function>hexdec</function></member> + <member><function>base_convert</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/math/functions/rand.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-kr/reference/math/functions/rand.xml diff -u phpdoc-kr/reference/math/functions/rand.xml:1.11 phpdoc-kr/reference/math/functions/rand.xml:1.12 --- phpdoc-kr/reference/math/functions/rand.xml:1.11 Thu Nov 13 15:40:53 2008 +++ phpdoc-kr/reference/math/functions/rand.xml Wed Nov 19 14:41:35 2008 @@ -1,27 +1,102 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.14 Maintainer: progcom Status: ready --> - <refentry xml:id="function.rand" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>rand</refname> - <refpurpose>정수형의 난수를 생성합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>rand</methodname> - <methodparam choice="opt"><type>int</type><parameter>min</parameter></methodparam> - <methodparam><type>int</type><parameter>max</parameter></methodparam> - </methodsynopsis> - <simpara> - 선택적인 <parameter>min</parameter>, <parameter>max</parameter> 인수 - 없이 호출하면, <function>rand</function>는 0과 <constant>RAND_MAX</constant> - 사이의 임의의 난수를 반환합니다. 예를 들어, 5와 15(포함) 사이의 - 난수를 얻으려면, <literal>rand (5, 15)</literal>로 사용합니다. - </simpara> - <para> - <example> - <title><function>rand</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.21 Maintainer: progcom Status: ready --> +<refentry xml:id="function.rand" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>rand</refname> + <refpurpose>정수 난수를 생성</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>rand</methodname> + <void/> + </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>rand</methodname> + <methodparam><type>int</type><parameter>min</parameter></methodparam> + <methodparam><type>int</type><parameter>max</parameter></methodparam> + </methodsynopsis> + <simpara> + 선택적인 <parameter>min</parameter>, <parameter>max</parameter> 인수 + 없이 호출하면, <function>rand</function>는 0과 + <function>getrandmax</function> + 사이의 임의의 난수를 반환합니다. 예를 들어, 5와 15(포함) 사이의 + 난수를 얻으려면, <literal>rand(5, 15)</literal>로 사용합니다. + </simpara> + <note> + <simpara> + 몇몇 플랫폼(윈도우 등)에서는, <function>getrandmax</function>가 + 32768입니다. 32768보다 넓은 범위가 필요하면, <parameter>min</parameter>과 + <parameter>max</parameter>를 지정해서 더 넓은 범위를 만들 수 있으며, 혹은 + <function>mt_rand</function>를 사용하는 것을 고려해보십시오. + </simpara> + </note> + + &note.randomseed; + + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>min</parameter></term> + <listitem> + <para> + 반환할 가장 작은 값 (기본값: 0) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>max</parameter></term> + <listitem> + <para> + 반환할 가장 큰 값 (기본값: <function>getrandmax</function>) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>min</parameter>(혹은 0)과 <parameter>max</parameter>(혹은 + <function>getrandmax</function>) 사이의 모의 난수 값. + </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>3.0.7부터</entry> + <entry> + 3.0.7 이전에 <parameter>max</parameter>의 의미는 + <parameter>range</parameter>였습니다. 이 버전에서 위에서 보인 간단한 + 예제와 같이 5에서 15사이의 난수를 얻으려면 <literal>rand + (5,11)</literal>로 사용해야 합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>rand</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php echo rand() . "\n"; @@ -29,46 +104,29 @@ echo rand(5, 15); ?> ]]> - </programlisting> - <para> - 위 예제의 출력 예는: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ 7771 22264 11 ]]> - </screen> - </example> - </para> - - <note> - <simpara> - 몇몇 플랫폼(윈도우 등)에서는 <constant>RAND_MAX</constant>는 - 32768까지 입니다. 32768보다 큰 범위가 필요할 경우에는, - <parameter>min</parameter>과 <parameter>max</parameter>를 지정하여 - RAND_MAX보다 큰 범위를 만들거나, <function>mt_rand</function>을 - 사용하십시오. - </simpara> - </note> - &note.randomseed; - <note> - <para> - 3.0.7 이전의 버전에서는 <parameter>max</parameter>의 의미는 - <parameter>range</parameter>였습니다. 이 버전에서 위의 예제와 같이 - 5에서 15 사이의 난수를 얻기 위해서는 <literal>rand (5, 11)</literal>로 - 사용해야만 합니다. - </para> - </note> - <simpara> - 참고: - <function>srand</function>, - <function>getrandmax</function>, - <function>mt_rand</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>srand</function></member> + <member><function>getrandmax</function></member> + <member><function>mt_rand</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.kr (#781) next »