cvs: phpdoc-kr /faq installation.xml /features remote-files.xml /language operators.xml /reference/array/functions uksort.xml
/reference/strings/functions rtrim.xml
| From: | LEE Yun-young | Date: | Sat, 29 Nov 2008 08:22:16 +0000 |
| Subject: | cvs: phpdoc-kr /faq installation.xml /features remote-files.xml /language operators.xml /reference/array/functions uksort.xml /reference/strings/functions rtrim.xml |
||
| Groups: | php.doc.kr | ||
| Request: | Send a blank email to doc-kr+get-794@lists.php.net to get a copy of this message | ||
progcom Sat Nov 29 08:22:16 2008 UTC
Modified files:
/phpdoc-kr/faq installation.xml
/phpdoc-kr/features remote-files.xml
/phpdoc-kr/language operators.xml
/phpdoc-kr/reference/array/functions uksort.xml
/phpdoc-kr/reference/strings/functions rtrim.xml
Log:
sync
http://cvs.php.net/viewvc.cgi/phpdoc-kr/faq/installation.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/faq/installation.xml diff -u phpdoc-kr/faq/installation.xml:1.7 phpdoc-kr/faq/installation.xml:1.8 --- phpdoc-kr/faq/installation.xml:1.7 Sun Nov 23 17:19:38 2008 +++ phpdoc-kr/faq/installation.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.52 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.53 Maintainer: progcom Status: ready --> <chapter xml:id="faq.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>ì¤ì¹</title> <titleabbrev>ì¤ì¹</titleabbrev> @@ -144,7 +144,7 @@ </itemizedlist> </para> <para> - ì¤í¬ë¦½í¸ê° ì ê· ííì í¨ì(<function>ereg</function> ê³ì´)를 + ì¤í¬ë¦½í¸ê° ì ê· ííì í¨ì(<function>preg_match</function> ê³ì´)를 ì¬ì©íë¤ë©´, PHPì ìíì¹ë¥¼ ëì¼í ì ê· ííì í¨í¤ì§ë¡ ì»´íì¼í´ì¼ í©ëë¤. PHPì ìíì¹ 1.3.xììë ìëì¼ë¡ ë©ëë¤. </para> http://cvs.php.net/viewvc.cgi/phpdoc-kr/features/remote-files.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-kr/features/remote-files.xml diff -u phpdoc-kr/features/remote-files.xml:1.12 phpdoc-kr/features/remote-files.xml:1.13 --- phpdoc-kr/features/remote-files.xml:1.12 Sun Nov 23 17:19:38 2008 +++ phpdoc-kr/features/remote-files.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.29 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.30 Maintainer: progcom Status: ready --> <!-- CREDITS: regina, fuzzy74 --> <chapter xml:id="features.remote-files" xmlns="http://docbook.org/ns/docbook"> <title>ì격 íì¼ ì¬ì©í기</title> @@ -53,7 +53,7 @@ while (!feof ($file)) { $line = fgets ($file, 1024); /* This only works if the title and its tags are on one line */ - if (eregi ("<title>(.*)</title>", $line, $out)) { + if (preg_match ("@\<title\>(.*)\</title\>@i", $line, $out)) { $title = $out[1]; break; } http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/operators.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-kr/language/operators.xml diff -u phpdoc-kr/language/operators.xml:1.12 phpdoc-kr/language/operators.xml:1.13 --- phpdoc-kr/language/operators.xml:1.12 Fri Nov 28 16:33:12 2008 +++ phpdoc-kr/language/operators.xml Sat Nov 29 08:22:15 2008 @@ -653,10 +653,10 @@ <programlisting role="php"> <![CDATA[ <?php -// Example usage for: Ternary Operator +// ì¬ì© ìì : ì¼í ì°ì°ì $action = (empty($_POST['action'])) ? 'default' : $_POST['action']; -// The above is identical to this if/else statement +// ì ìì ë ë¤ìì if/else 구문과 ëì¼í©ëë¤ if (empty($_POST['action'])) { $action = 'default'; } else { @@ -767,14 +767,13 @@ </sect1> <sect1 xml:id="language.operators.execution"> - <title>Execution Operators</title> + <title>ì¤í ì°ì°ì</title> <para> - PHP supports one execution operator: backticks (``). Note that - these are not single-quotes! PHP will attempt to execute the - contents of the backticks as a shell command; the output will be - returned (i.e., it won't simply be dumped to output; it can be - assigned to a variable). Use of the backtick operator is identical - to <function>shell_exec</function>. + PHPë íëì ì¤í ì°ì°ì를 ì§ìí©ëë¤: ìë°ì´í(``). íë°ì´íê° ìë ì ì + 주ìíììì¤! PHPë ìë°ì´í ìì ë´ì©ì ì ëª ë ¹ì¼ë¡ ì¤ííë ¤ í ê²ì ëë¤; + ì¶ë ¥ì ë°íí©ëë¤. (ì¦, ë¨ìí ì¶ë ¥íë ê²ì´ ìëëë¤; ë³ìì í ë¹í ì + ììµëë¤) ìë°ì´í ì°ì°ì를 ì¬ì©íë ê²ì + <function>shell_exec</function>ì ëì¼í©ëë¤. <informalexample> <programlisting role="php"> <![CDATA[ @@ -788,68 +787,65 @@ </para> <note> <para> - The backtick operator is disabled when &safemode; is enabled - or <function>shell_exec</function> is disabled. + ìë°ì´í ì°ì°ìë &safemode;ê° ì¼ì ¸ìê±°ë + <function>shell_exec</function>ê° ë¹íì±í ëë©´ ì¬ì©í ì ììµëë¤. </para> </note> <para> - See also the manual section on <link linkend="ref.exec">Program - Execution functions</link>, <function>popen</function> - <function>proc_open</function>, and - <link linkend="features.commandline">Using PHP from the - commandline</link>. + 매ë´ì¼ <link linkend="ref.exec">íë¡ê·¸ë¨ ì¤í í¨ì</link> ì¹ì , + <function>popen</function>, <function>proc_open</function>, <link + linkend="features.commandline">PHP를 ëª ë ¹ì¤ìì ì¬ì©í기</link>를 + ì°¸ê³ íììì¤. </para> </sect1> <sect1 xml:id="language.operators.increment"> - <title>Incrementing/Decrementing Operators</title> + <title>ì¦ê°/ê°ì ì°ì°ì</title> <para> - PHP supports C-style pre- and post-increment and decrement - operators. + PHPë C íìì ì¬ì , ì¬í ì¦ê° ë° ê°ì ì°ì°ì를 ì§ìí©ëë¤. </para> <note> <simpara> - The increment/decrement operators do not affect boolean values. - Decrementing &null; values has no effect too, but incrementing them - results in <literal>1</literal>. + ì¦ê°/ê°ì ì°ì°ìë ë ¼ë¦¬ ê°ì ìí¥ì ì£¼ì§ ììµëë¤. &null; ê°ì ê°ìíë + ê²ë ìí¥ì´ ìì§ë§, ì¦ê°ìí¤ë©´ <literal>1</literal>ì´ ë©ëë¤. </simpara> </note> <table> - <title>Increment/decrement Operators</title> + <title>ì¦ê°/ê°ì ì°ì°ì</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Effect</entry> + <entry>ìì </entry> + <entry>ì´ë¦</entry> + <entry>í¨ê³¼</entry> </row> </thead> <tbody> <row> <entry>++$a</entry> <entry>Pre-increment</entry> - <entry>Increments $a by one, then returns $a.</entry> + <entry>$a를 1 ì¦ê°íê³ , $a를 ë°í.</entry> </row> <row> <entry>$a++</entry> <entry>Post-increment</entry> - <entry>Returns $a, then increments $a by one.</entry> + <entry>$a를 ë°ííê³ , $a를 1 ì¦ê°.</entry> </row> <row> <entry>--$a</entry> <entry>Pre-decrement</entry> - <entry>Decrements $a by one, then returns $a.</entry> + <entry>$a를 1 ê°ìíê³ , $a를 ë°í.</entry> </row> <row> <entry>$a--</entry> <entry>Post-decrement</entry> - <entry>Returns $a, then decrements $a by one.</entry> + <entry>$a를 ë°ííê³ , $a를 1 ê°ì.</entry> </row> </tbody> </tgroup> </table> <para> - Here's a simple example script: + ê°ë¨í ìì ì¤í¬ë¦½í¸ì ëë¤: <informalexample> <programlisting role="php"> <![CDATA[ @@ -879,13 +875,12 @@ </informalexample> </para> <para> - PHP follows Perl's convention when dealing with arithmetic operations - on character variables and not C's. For example, in Perl 'Z'+1 turns - into 'AA', while in C 'Z'+1 turns into '[' ( ord('Z') == 90, ord('[') == 91 ). - Note that character variables can be incremented but not decremented and - even so only plain ASCII characters (a-z and A-Z) are supported. + PHPë 문ì ë³ìì ê³ì° ì°ì°ì í ê²½ì°, Cê° ìë íì ê·ì ì ë°ë¦ ëë¤. ì를 + ë¤ë©´, íìì 'Z'+1ì 'AA'ê° ëì§ë§, Cìì 'Z'+1ì '['( ord('Z') == 90, + ord('[') == 91)ì ëë¤. 문ì ë³ìë ì¦ê°ë§ í ì ìê³ , ê°ìë í ì ìì¼ë©°, + ASCII ìíë²³ 문ì(a-zì A-Z)ë§ ì§ìí©ëë¤. <example> - <title>Arithmetic Operations on Character Variables</title> + <title>문ì ë³ìì ê³ì° ì°ì°</title> <programlisting role="php"> <![CDATA[ <?php @@ -910,65 +905,64 @@ </example> </para> <para> - Incrementing or decrementing booleans has no effect. + ë ¼ë¦¬ê°ì ëí ì¦ê°ë ê°ìë ìí¥ì´ ììµëë¤. </para> </sect1> <sect1 xml:id="language.operators.logical"> - <title>Logical Operators</title> + <title>ë ¼ë¦¬ ì°ì°ì</title> <table> - <title>Logical Operators</title> + <title>ë ¼ë¦¬ ì°ì°ì</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Result</entry> + <entry>ìì </entry> + <entry>ì´ë¦</entry> + <entry>ê²°ê³¼</entry> </row> </thead> <tbody> <row> <entry>$a and $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>$aì $bê° ëª¨ë &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a or $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>$aë $bê° &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a xor $b</entry> <entry>Xor</entry> - <entry>&true; if either $a or $b is &true;, but not both.</entry> + <entry>$aì $bì¤ íëë§ &true;ì¼ ëë§ &true;.</entry> </row> <row> <entry>! $a</entry> <entry>Not</entry> - <entry>&true; if $a is not &true;.</entry> + <entry>$aê° &true;ê° ìëë©´ &true;.</entry> </row> <row> <entry>$a && $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>$aì $bê° ëª¨ë &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a || $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>$aë $bê° &true;ì´ë©´ &true;.</entry> </row> </tbody> </tgroup> </table> <simpara> - The reason for the two different variations of "and" and "or" - operators is that they operate at different precedences. (See - <link linkend="language.operators.precedence">Operator - Precedence</link>.) + "and"ì "or" ì°ì°ìê° ë ì¢ ë¥ê° ìë ê²ì, ë¤ë¥¸ ì°ì ê¶ì ê°ì§ê¸° + ë문ì ëë¤. (<link linkend="language.operators.precedence">ì°ì°ì + ì°ì ê¶</link> ì°¸ê³ ) </simpara> <example> - <title>Logical operators illustrated</title> + <title>ë ¼ë¦¬ ì°ì°ì ì¤ëª </title> <programlisting role="php"> <![CDATA[ <?php @@ -1008,9 +1002,9 @@ <simpara> There are two <type>string</type> operators. The first is the concatenation operator ('.'), which returns the concatenation of its - ì¤ë¥¸ìª½ and ì¼ìª½ arguments. The second is the concatenating assignment + right and left arguments. The second is the concatenating assignment operator ('.='), which appends the argument on the ì¤ë¥¸ìª½ side to - the argument on the ì¼ìª½ side. Please read <link + the argument on the left side. Please read <link linkend="language.operators.assignment">Assignment Operators</link> for more information. </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/array/functions/uksort.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/array/functions/uksort.xml diff -u phpdoc-kr/reference/array/functions/uksort.xml:1.6 phpdoc-kr/reference/array/functions/uksort.xml:1.7 --- phpdoc-kr/reference/array/functions/uksort.xml:1.6 Sat Nov 22 01:44:09 2008 +++ phpdoc-kr/reference/array/functions/uksort.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.22 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.23 Maintainer: progcom Status: ready --> <!-- CREDITS: fuzzy74 --> <refentry xml:id="function.uksort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -64,8 +64,8 @@ <?php function cmp($a, $b) { - $a = ereg_replace('^(a|an|the) ', '', $a); - $b = ereg_replace('^(a|an|the) ', '', $b); + $a = preg_replace('@^(a|an|the) @', '', $a); + $b = preg_replace('@^(a|an|the) @', '', $b); return strcasecmp($a, $b); } http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/rtrim.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/rtrim.xml diff -u phpdoc-kr/reference/strings/functions/rtrim.xml:1.4 phpdoc-kr/reference/strings/functions/rtrim.xml:1.5 --- phpdoc-kr/reference/strings/functions/rtrim.xml:1.4 Sun Nov 9 18:31:48 2008 +++ phpdoc-kr/reference/strings/functions/rtrim.xml Sat Nov 29 08:22:15 2008 @@ -1,100 +1,187 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.rtrim" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>rtrim</refname> - <refpurpose> - 문ìì´ ë ë¶ë¶ì 공백ì ì ê±°í©ëë¤. - </refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>string</type><methodname>rtrim</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>charlist</parameter></methodparam> - </methodsynopsis> - <note> +<refentry xml:id="function.rtrim" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>rtrim</refname> + <refpurpose>문ìì´ ë§ì§ë§ì 공백(ì´ë ë¤ë¥¸ 문ì)ì ì ê±°</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>rtrim</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>charlist</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>str</parameter>ì ë ë¶ë¶ìì 공백ì ì ê±°í 문ìì´ì + ë°íí©ëë¤. + </para> + <para> + ëë²ì§¸ ì¸ìê° ìì¼ë©´, <function>rtrim</function>ì ë¤ì + 문ìë¤ì ì ê±°í©ëë¤: + <!-- sorted by importance. Printed 3 times: trim, ltrim, rtrim --> + <itemizedlist> + <listitem> + <simpara> + " " (<acronym>ASCII</acronym> <literal>32</literal> + (<literal>0x20</literal>)), ë³´íµì 공백. + </simpara> + </listitem> + <listitem> + <simpara> + "\t" (<acronym>ASCII</acronym> <literal>9</literal> + (<literal>0x09</literal>)), í. + </simpara> + </listitem> + <listitem> + <simpara> + "\n" (<acronym>ASCII</acronym> <literal>10</literal> + (<literal>0x0A</literal>)), ì¤ë°ê¿. + </simpara> + </listitem> + <listitem> <simpara> - ëë²ì§¸ ì¸ìë PHP 4.1.0ìì ì¶ê°ëììµëë¤. + "\r" (<acronym>ASCII</acronym> <literal>13</literal> + (<literal>0x0D</literal>)), ìºë¦¬ì§ 리í´. </simpara> - </note> - <para> - <parameter>str</parameter>ì ë ë¶ë¶ìì 공백ì ì ê±°í 문ìì´ì - ë°íí©ëë¤. ëë²ì§¸ ì¸ìê° ìì¼ë©´, <function>rtrim</function>ì ë¤ì - 문ìë¤ì ì ê±°í©ëë¤: - <!-- sorted by importance. Printed 3 times: trim, ltrim, rtrim --> - <itemizedlist> - <listitem> - <simpara> - " " (<acronym>ASCII</acronym> <literal>32</literal> - (<literal>0x20</literal>)), ë³´íµì 공백. - </simpara> - </listitem> - <listitem> - <simpara> - "\t" (<acronym>ASCII</acronym> <literal>9</literal> - (<literal>0x09</literal>)), í. - </simpara> - </listitem> - <listitem> - <simpara> - "\n" (<acronym>ASCII</acronym> <literal>10</literal> - (<literal>0x0A</literal>)), ë´ë¼ì¸. (ì¤ë°ê¿) - </simpara> - </listitem> - <listitem> - <simpara> - "\r" (<acronym>ASCII</acronym> <literal>13</literal> - (<literal>0x0D</literal>)), ìºë¦¬ì§ 리í´. - </simpara> - </listitem> - <listitem> - <simpara> - "\0" (<acronym>ASCII</acronym> <literal>0</literal> - (<literal>0x00</literal>)), <literal>NUL</literal> ë°ì´í¸. - </simpara> - </listitem> - <listitem> - <simpara> <!-- not \v, since not supported by PHP --> - "\x0B" (<acronym>ASCII</acronym> <literal>11</literal> - (<literal>0x0B</literal>)), ìì§ í. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - <parameter>charlist</parameter> ì¸ì를 íµí´ì ì ê±°í기를 ìíë 문ì를 - ì§ì í ì ììµëë¤. ê°ë¨í ì ê±°í기를 ìíë 모ë 문ì를 기ë¡íë©´ ë©ëë¤. - <literal>..</literal>ë¡ ë¬¸ìì ë²ì를 ì§ì í ì ììµëë¤. - </para> - <example> - <title><function>rtrim</function> ì¬ì© ìì </title> - <para> - <programlisting role="php"> + </listitem> + <listitem> + <simpara> + "\0" (<acronym>ASCII</acronym> <literal>0</literal> + (<literal>0x00</literal>)), <literal>NUL</literal> ë°ì´í¸. + </simpara> + </listitem> + <listitem> + <simpara> <!-- not \v, since not supported by PHP --> + "\x0B" (<acronym>ASCII</acronym> <literal>11</literal> + (<literal>0x0B</literal>)), ìì§ í. + </simpara> + </listitem> + </itemizedlist> + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + ì ë ¥ 문ìì´. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charlist</parameter></term> + <listitem> + <para> + <parameter>charlist</parameter> ì¸ì를 íµí´ì ì ê±°í기를 ìíë 문ì를 + ì§ì í ì ììµëë¤. ê°ë¨í ì ê±°í기를 ìíë 모ë 문ì를 기ë¡íë©´ ë©ëë¤. + <literal>..</literal>ë¡ ë¬¸ìì ë²ì를 ì§ì í ì ììµëë¤. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + ë³ê²½ë 문ìì´ì ë°íí©ëë¤. + </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> + <parameter>charlist</parameter> ì¸ì ì¶ê°. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>rtrim</function> ì¬ì© ìì </title> + <programlisting role="php"> <![CDATA[ <?php $text = "\t\tThese are a few words :) ... "; +$binary = "\x09Example string\x0A"; +$hello = "Hello World" +var_dump($text, $binary, $hello); + +print "\n"; + $trimmed = rtrim($text); -// $trimmed = "\t\tThese are a few words :) ..." +var_dump($trimmed); + $trimmed = rtrim($text, " \t."); -// $trimmed = "\t\tThese are a few words :)" -$clean = rtrim($binary, "\0x00..\0x1F"); +var_dump($trimmed); + +$trimmed = rtrim($hello, "Hdle"); +var_dump($trimmed); + // $binaryì ë§ì§ë§ ë¶ë¶ìì ìì¤í¤ ì ì´ ë¬¸ì를 ì ê±°í©ëë¤. -// (0ìì 31ê¹ì§) +// (0ë¶í° 31ê¹ì§) +$clean = rtrim($binary, "\0x00..\0x1F"); +var_dump($clean); ?> ]]> - </programlisting> - </para> - </example> - <para> - ì°¸ê³ : <function>trim</function>, <function>ltrim</function>. - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +string(32) " These are a few words :) ... " +string(16) " Example string +" +string(11) "Hello World" + +string(30) " These are a few words :) ..." +string(26) " These are a few words :)" +string(9) "Hello Wor" +string(15) " Example string" +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>trim</function></member> + <member><function>ltrim</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/faq/installation.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-kr/faq/installation.xml diff -u phpdoc-kr/faq/installation.xml:1.7 phpdoc-kr/faq/installation.xml:1.8 --- phpdoc-kr/faq/installation.xml:1.7 Sun Nov 23 17:19:38 2008 +++ phpdoc-kr/faq/installation.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.52 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.53 Maintainer: progcom Status: ready --> <chapter xml:id="faq.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>ì¤ì¹</title> <titleabbrev>ì¤ì¹</titleabbrev> @@ -144,7 +144,7 @@ </itemizedlist> </para> <para> - ì¤í¬ë¦½í¸ê° ì ê· ííì í¨ì(<function>ereg</function> ê³ì´)를 + ì¤í¬ë¦½í¸ê° ì ê· ííì í¨ì(<function>preg_match</function> ê³ì´)를 ì¬ì©íë¤ë©´, PHPì ìíì¹ë¥¼ ëì¼í ì ê· ííì í¨í¤ì§ë¡ ì»´íì¼í´ì¼ í©ëë¤. PHPì ìíì¹ 1.3.xììë ìëì¼ë¡ ë©ëë¤. </para> http://cvs.php.net/viewvc.cgi/phpdoc-kr/features/remote-files.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-kr/features/remote-files.xml diff -u phpdoc-kr/features/remote-files.xml:1.12 phpdoc-kr/features/remote-files.xml:1.13 --- phpdoc-kr/features/remote-files.xml:1.12 Sun Nov 23 17:19:38 2008 +++ phpdoc-kr/features/remote-files.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.29 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.30 Maintainer: progcom Status: ready --> <!-- CREDITS: regina, fuzzy74 --> <chapter xml:id="features.remote-files" xmlns="http://docbook.org/ns/docbook"> <title>ì격 íì¼ ì¬ì©í기</title> @@ -53,7 +53,7 @@ while (!feof ($file)) { $line = fgets ($file, 1024); /* This only works if the title and its tags are on one line */ - if (eregi ("<title>(.*)</title>", $line, $out)) { + if (preg_match ("@\<title\>(.*)\</title\>@i", $line, $out)) { $title = $out[1]; break; } http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/operators.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-kr/language/operators.xml diff -u phpdoc-kr/language/operators.xml:1.12 phpdoc-kr/language/operators.xml:1.13 --- phpdoc-kr/language/operators.xml:1.12 Fri Nov 28 16:33:12 2008 +++ phpdoc-kr/language/operators.xml Sat Nov 29 08:22:15 2008 @@ -653,10 +653,10 @@ <programlisting role="php"> <![CDATA[ <?php -// Example usage for: Ternary Operator +// ì¬ì© ìì : ì¼í ì°ì°ì $action = (empty($_POST['action'])) ? 'default' : $_POST['action']; -// The above is identical to this if/else statement +// ì ìì ë ë¤ìì if/else 구문과 ëì¼í©ëë¤ if (empty($_POST['action'])) { $action = 'default'; } else { @@ -767,14 +767,13 @@ </sect1> <sect1 xml:id="language.operators.execution"> - <title>Execution Operators</title> + <title>ì¤í ì°ì°ì</title> <para> - PHP supports one execution operator: backticks (``). Note that - these are not single-quotes! PHP will attempt to execute the - contents of the backticks as a shell command; the output will be - returned (i.e., it won't simply be dumped to output; it can be - assigned to a variable). Use of the backtick operator is identical - to <function>shell_exec</function>. + PHPë íëì ì¤í ì°ì°ì를 ì§ìí©ëë¤: ìë°ì´í(``). íë°ì´íê° ìë ì ì + 주ìíììì¤! PHPë ìë°ì´í ìì ë´ì©ì ì ëª ë ¹ì¼ë¡ ì¤ííë ¤ í ê²ì ëë¤; + ì¶ë ¥ì ë°íí©ëë¤. (ì¦, ë¨ìí ì¶ë ¥íë ê²ì´ ìëëë¤; ë³ìì í ë¹í ì + ììµëë¤) ìë°ì´í ì°ì°ì를 ì¬ì©íë ê²ì + <function>shell_exec</function>ì ëì¼í©ëë¤. <informalexample> <programlisting role="php"> <![CDATA[ @@ -788,68 +787,65 @@ </para> <note> <para> - The backtick operator is disabled when &safemode; is enabled - or <function>shell_exec</function> is disabled. + ìë°ì´í ì°ì°ìë &safemode;ê° ì¼ì ¸ìê±°ë + <function>shell_exec</function>ê° ë¹íì±í ëë©´ ì¬ì©í ì ììµëë¤. </para> </note> <para> - See also the manual section on <link linkend="ref.exec">Program - Execution functions</link>, <function>popen</function> - <function>proc_open</function>, and - <link linkend="features.commandline">Using PHP from the - commandline</link>. + 매ë´ì¼ <link linkend="ref.exec">íë¡ê·¸ë¨ ì¤í í¨ì</link> ì¹ì , + <function>popen</function>, <function>proc_open</function>, <link + linkend="features.commandline">PHP를 ëª ë ¹ì¤ìì ì¬ì©í기</link>를 + ì°¸ê³ íììì¤. </para> </sect1> <sect1 xml:id="language.operators.increment"> - <title>Incrementing/Decrementing Operators</title> + <title>ì¦ê°/ê°ì ì°ì°ì</title> <para> - PHP supports C-style pre- and post-increment and decrement - operators. + PHPë C íìì ì¬ì , ì¬í ì¦ê° ë° ê°ì ì°ì°ì를 ì§ìí©ëë¤. </para> <note> <simpara> - The increment/decrement operators do not affect boolean values. - Decrementing &null; values has no effect too, but incrementing them - results in <literal>1</literal>. + ì¦ê°/ê°ì ì°ì°ìë ë ¼ë¦¬ ê°ì ìí¥ì ì£¼ì§ ììµëë¤. &null; ê°ì ê°ìíë + ê²ë ìí¥ì´ ìì§ë§, ì¦ê°ìí¤ë©´ <literal>1</literal>ì´ ë©ëë¤. </simpara> </note> <table> - <title>Increment/decrement Operators</title> + <title>ì¦ê°/ê°ì ì°ì°ì</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Effect</entry> + <entry>ìì </entry> + <entry>ì´ë¦</entry> + <entry>í¨ê³¼</entry> </row> </thead> <tbody> <row> <entry>++$a</entry> <entry>Pre-increment</entry> - <entry>Increments $a by one, then returns $a.</entry> + <entry>$a를 1 ì¦ê°íê³ , $a를 ë°í.</entry> </row> <row> <entry>$a++</entry> <entry>Post-increment</entry> - <entry>Returns $a, then increments $a by one.</entry> + <entry>$a를 ë°ííê³ , $a를 1 ì¦ê°.</entry> </row> <row> <entry>--$a</entry> <entry>Pre-decrement</entry> - <entry>Decrements $a by one, then returns $a.</entry> + <entry>$a를 1 ê°ìíê³ , $a를 ë°í.</entry> </row> <row> <entry>$a--</entry> <entry>Post-decrement</entry> - <entry>Returns $a, then decrements $a by one.</entry> + <entry>$a를 ë°ííê³ , $a를 1 ê°ì.</entry> </row> </tbody> </tgroup> </table> <para> - Here's a simple example script: + ê°ë¨í ìì ì¤í¬ë¦½í¸ì ëë¤: <informalexample> <programlisting role="php"> <![CDATA[ @@ -879,13 +875,12 @@ </informalexample> </para> <para> - PHP follows Perl's convention when dealing with arithmetic operations - on character variables and not C's. For example, in Perl 'Z'+1 turns - into 'AA', while in C 'Z'+1 turns into '[' ( ord('Z') == 90, ord('[') == 91 ). - Note that character variables can be incremented but not decremented and - even so only plain ASCII characters (a-z and A-Z) are supported. + PHPë 문ì ë³ìì ê³ì° ì°ì°ì í ê²½ì°, Cê° ìë íì ê·ì ì ë°ë¦ ëë¤. ì를 + ë¤ë©´, íìì 'Z'+1ì 'AA'ê° ëì§ë§, Cìì 'Z'+1ì '['( ord('Z') == 90, + ord('[') == 91)ì ëë¤. 문ì ë³ìë ì¦ê°ë§ í ì ìê³ , ê°ìë í ì ìì¼ë©°, + ASCII ìíë²³ 문ì(a-zì A-Z)ë§ ì§ìí©ëë¤. <example> - <title>Arithmetic Operations on Character Variables</title> + <title>문ì ë³ìì ê³ì° ì°ì°</title> <programlisting role="php"> <![CDATA[ <?php @@ -910,65 +905,64 @@ </example> </para> <para> - Incrementing or decrementing booleans has no effect. + ë ¼ë¦¬ê°ì ëí ì¦ê°ë ê°ìë ìí¥ì´ ììµëë¤. </para> </sect1> <sect1 xml:id="language.operators.logical"> - <title>Logical Operators</title> + <title>ë ¼ë¦¬ ì°ì°ì</title> <table> - <title>Logical Operators</title> + <title>ë ¼ë¦¬ ì°ì°ì</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Result</entry> + <entry>ìì </entry> + <entry>ì´ë¦</entry> + <entry>ê²°ê³¼</entry> </row> </thead> <tbody> <row> <entry>$a and $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>$aì $bê° ëª¨ë &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a or $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>$aë $bê° &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a xor $b</entry> <entry>Xor</entry> - <entry>&true; if either $a or $b is &true;, but not both.</entry> + <entry>$aì $bì¤ íëë§ &true;ì¼ ëë§ &true;.</entry> </row> <row> <entry>! $a</entry> <entry>Not</entry> - <entry>&true; if $a is not &true;.</entry> + <entry>$aê° &true;ê° ìëë©´ &true;.</entry> </row> <row> <entry>$a && $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>$aì $bê° ëª¨ë &true;ì´ë©´ &true;.</entry> </row> <row> <entry>$a || $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>$aë $bê° &true;ì´ë©´ &true;.</entry> </row> </tbody> </tgroup> </table> <simpara> - The reason for the two different variations of "and" and "or" - operators is that they operate at different precedences. (See - <link linkend="language.operators.precedence">Operator - Precedence</link>.) + "and"ì "or" ì°ì°ìê° ë ì¢ ë¥ê° ìë ê²ì, ë¤ë¥¸ ì°ì ê¶ì ê°ì§ê¸° + ë문ì ëë¤. (<link linkend="language.operators.precedence">ì°ì°ì + ì°ì ê¶</link> ì°¸ê³ ) </simpara> <example> - <title>Logical operators illustrated</title> + <title>ë ¼ë¦¬ ì°ì°ì ì¤ëª </title> <programlisting role="php"> <![CDATA[ <?php @@ -1008,9 +1002,9 @@ <simpara> There are two <type>string</type> operators. The first is the concatenation operator ('.'), which returns the concatenation of its - ì¤ë¥¸ìª½ and ì¼ìª½ arguments. The second is the concatenating assignment + right and left arguments. The second is the concatenating assignment operator ('.='), which appends the argument on the ì¤ë¥¸ìª½ side to - the argument on the ì¼ìª½ side. Please read <link + the argument on the left side. Please read <link linkend="language.operators.assignment">Assignment Operators</link> for more information. </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/array/functions/uksort.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/array/functions/uksort.xml diff -u phpdoc-kr/reference/array/functions/uksort.xml:1.6 phpdoc-kr/reference/array/functions/uksort.xml:1.7 --- phpdoc-kr/reference/array/functions/uksort.xml:1.6 Sat Nov 22 01:44:09 2008 +++ phpdoc-kr/reference/array/functions/uksort.xml Sat Nov 29 08:22:15 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.22 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.23 Maintainer: progcom Status: ready --> <!-- CREDITS: fuzzy74 --> <refentry xml:id="function.uksort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -64,8 +64,8 @@ <?php function cmp($a, $b) { - $a = ereg_replace('^(a|an|the) ', '', $a); - $b = ereg_replace('^(a|an|the) ', '', $b); + $a = preg_replace('@^(a|an|the) @', '', $a); + $b = preg_replace('@^(a|an|the) @', '', $b); return strcasecmp($a, $b); } http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/rtrim.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/rtrim.xml diff -u phpdoc-kr/reference/strings/functions/rtrim.xml:1.4 phpdoc-kr/reference/strings/functions/rtrim.xml:1.5 --- phpdoc-kr/reference/strings/functions/rtrim.xml:1.4 Sun Nov 9 18:31:48 2008 +++ phpdoc-kr/reference/strings/functions/rtrim.xml Sat Nov 29 08:22:15 2008 @@ -1,100 +1,187 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.rtrim" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>rtrim</refname> - <refpurpose> - 문ìì´ ë ë¶ë¶ì 공백ì ì ê±°í©ëë¤. - </refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>string</type><methodname>rtrim</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>charlist</parameter></methodparam> - </methodsynopsis> - <note> +<refentry xml:id="function.rtrim" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>rtrim</refname> + <refpurpose>문ìì´ ë§ì§ë§ì 공백(ì´ë ë¤ë¥¸ 문ì)ì ì ê±°</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>rtrim</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>charlist</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>str</parameter>ì ë ë¶ë¶ìì 공백ì ì ê±°í 문ìì´ì + ë°íí©ëë¤. + </para> + <para> + ëë²ì§¸ ì¸ìê° ìì¼ë©´, <function>rtrim</function>ì ë¤ì + 문ìë¤ì ì ê±°í©ëë¤: + <!-- sorted by importance. Printed 3 times: trim, ltrim, rtrim --> + <itemizedlist> + <listitem> + <simpara> + " " (<acronym>ASCII</acronym> <literal>32</literal> + (<literal>0x20</literal>)), ë³´íµì 공백. + </simpara> + </listitem> + <listitem> + <simpara> + "\t" (<acronym>ASCII</acronym> <literal>9</literal> + (<literal>0x09</literal>)), í. + </simpara> + </listitem> + <listitem> + <simpara> + "\n" (<acronym>ASCII</acronym> <literal>10</literal> + (<literal>0x0A</literal>)), ì¤ë°ê¿. + </simpara> + </listitem> + <listitem> <simpara> - ëë²ì§¸ ì¸ìë PHP 4.1.0ìì ì¶ê°ëììµëë¤. + "\r" (<acronym>ASCII</acronym> <literal>13</literal> + (<literal>0x0D</literal>)), ìºë¦¬ì§ 리í´. </simpara> - </note> - <para> - <parameter>str</parameter>ì ë ë¶ë¶ìì 공백ì ì ê±°í 문ìì´ì - ë°íí©ëë¤. ëë²ì§¸ ì¸ìê° ìì¼ë©´, <function>rtrim</function>ì ë¤ì - 문ìë¤ì ì ê±°í©ëë¤: - <!-- sorted by importance. Printed 3 times: trim, ltrim, rtrim --> - <itemizedlist> - <listitem> - <simpara> - " " (<acronym>ASCII</acronym> <literal>32</literal> - (<literal>0x20</literal>)), ë³´íµì 공백. - </simpara> - </listitem> - <listitem> - <simpara> - "\t" (<acronym>ASCII</acronym> <literal>9</literal> - (<literal>0x09</literal>)), í. - </simpara> - </listitem> - <listitem> - <simpara> - "\n" (<acronym>ASCII</acronym> <literal>10</literal> - (<literal>0x0A</literal>)), ë´ë¼ì¸. (ì¤ë°ê¿) - </simpara> - </listitem> - <listitem> - <simpara> - "\r" (<acronym>ASCII</acronym> <literal>13</literal> - (<literal>0x0D</literal>)), ìºë¦¬ì§ 리í´. - </simpara> - </listitem> - <listitem> - <simpara> - "\0" (<acronym>ASCII</acronym> <literal>0</literal> - (<literal>0x00</literal>)), <literal>NUL</literal> ë°ì´í¸. - </simpara> - </listitem> - <listitem> - <simpara> <!-- not \v, since not supported by PHP --> - "\x0B" (<acronym>ASCII</acronym> <literal>11</literal> - (<literal>0x0B</literal>)), ìì§ í. - </simpara> - </listitem> - </itemizedlist> - </para> - <para> - <parameter>charlist</parameter> ì¸ì를 íµí´ì ì ê±°í기를 ìíë 문ì를 - ì§ì í ì ììµëë¤. ê°ë¨í ì ê±°í기를 ìíë 모ë 문ì를 기ë¡íë©´ ë©ëë¤. - <literal>..</literal>ë¡ ë¬¸ìì ë²ì를 ì§ì í ì ììµëë¤. - </para> - <example> - <title><function>rtrim</function> ì¬ì© ìì </title> - <para> - <programlisting role="php"> + </listitem> + <listitem> + <simpara> + "\0" (<acronym>ASCII</acronym> <literal>0</literal> + (<literal>0x00</literal>)), <literal>NUL</literal> ë°ì´í¸. + </simpara> + </listitem> + <listitem> + <simpara> <!-- not \v, since not supported by PHP --> + "\x0B" (<acronym>ASCII</acronym> <literal>11</literal> + (<literal>0x0B</literal>)), ìì§ í. + </simpara> + </listitem> + </itemizedlist> + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + ì ë ¥ 문ìì´. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>charlist</parameter></term> + <listitem> + <para> + <parameter>charlist</parameter> ì¸ì를 íµí´ì ì ê±°í기를 ìíë 문ì를 + ì§ì í ì ììµëë¤. ê°ë¨í ì ê±°í기를 ìíë 모ë 문ì를 기ë¡íë©´ ë©ëë¤. + <literal>..</literal>ë¡ ë¬¸ìì ë²ì를 ì§ì í ì ììµëë¤. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + ë³ê²½ë 문ìì´ì ë°íí©ëë¤. + </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> + <parameter>charlist</parameter> ì¸ì ì¶ê°. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>rtrim</function> ì¬ì© ìì </title> + <programlisting role="php"> <![CDATA[ <?php $text = "\t\tThese are a few words :) ... "; +$binary = "\x09Example string\x0A"; +$hello = "Hello World" +var_dump($text, $binary, $hello); + +print "\n"; + $trimmed = rtrim($text); -// $trimmed = "\t\tThese are a few words :) ..." +var_dump($trimmed); + $trimmed = rtrim($text, " \t."); -// $trimmed = "\t\tThese are a few words :)" -$clean = rtrim($binary, "\0x00..\0x1F"); +var_dump($trimmed); + +$trimmed = rtrim($hello, "Hdle"); +var_dump($trimmed); + // $binaryì ë§ì§ë§ ë¶ë¶ìì ìì¤í¤ ì ì´ ë¬¸ì를 ì ê±°í©ëë¤. -// (0ìì 31ê¹ì§) +// (0ë¶í° 31ê¹ì§) +$clean = rtrim($binary, "\0x00..\0x1F"); +var_dump($clean); ?> ]]> - </programlisting> - </para> - </example> - <para> - ì°¸ê³ : <function>trim</function>, <function>ltrim</function>. - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +string(32) " These are a few words :) ... " +string(16) " Example string +" +string(11) "Hello World" + +string(30) " These are a few words :) ..." +string(26) " These are a few words :)" +string(9) "Hello Wor" +string(15) " Example string" +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>trim</function></member> + <member><function>ltrim</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: