cvs: phpdoc /kr/language functions.xml
| From: | WonHee Hwang | Date: | Wed, 10 Jan 2001 11:32:28 +0000 |
| Subject: | cvs: phpdoc /kr/language functions.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333534@lists.php.net to get a copy of this message | ||
regina Wed Jan 10 03:32:28 2001 EDT
Modified files:
/phpdoc/kr/language functions.xml
Log:
Index: phpdoc/kr/language/functions.xml diff -u phpdoc/kr/language/functions.xml:1.2 phpdoc/kr/language/functions.xml:1.3 --- phpdoc/kr/language/functions.xml:1.2 Tue Jan 9 16:41:17 2001 +++ phpdoc/kr/language/functions.xml Wed Jan 10 03:32:27 2001 @@ -1,11 +1,11 @@ - <chapter id="functions"> - <title>Functions</title> + <chapter id="functions"> + <title>í¨ì (Functions)</title> <sect1 id="functions.user-defined"> - <title>User-defined functions</title> + <title>ì¬ì©ì ì ì í¨ì (User-defined functions)</title> <para> - A function may be defined using syntax such as the following: + í¨ìë ë¤ìê³¼ ê°ì´ ì ìíë¤. : <informalexample> <programlisting role="php"> @@ -18,28 +18,23 @@ </para> <simpara> - Any valid PHP code may appear inside a function, even other - functions and <link linkend="keyword.class">class</link> - definitions. + í¨ì ììë ë¤ë¥¸ í¨ìë <link linkend="keyword.class">class</link>ì ì ì¸ ë±ì í¬í¨í 모ë ê°ë¥í PHP ì½ëê° ì¬ì©ë ì ìë¤. </simpara> <simpara> - In PHP 3, functions must be defined before they are referenced. No - such requirement exists in PHP 4. + PHP3ììë í¨ìë ê·¸ í¨ìê° ì¬ì©ë기 ì´ì ì ì ì¸ëì´ ìì´ì¼ íìì¼ë + PHP4ììë ì´ë° ì ì½ì´ ìì´ì¡ë¤. </simpara> <simpara> - PHP does not support function overloading, nor is it possible to - undefine or redefine previously-declared functions. + PHPë function overloadingì ì§ìíì§ ìê³ , + ì´ë¯¸ ì ìë í¨ì를 ì¬ì ìíê±°ë ìì ì§ ëª»íë¤. </simpara> <simpara> - PHP 3 does not support variable numbers of arguments to functions, - although default arguments are supported (see <link - linkend="functions.arguments.default">Default argument - values</link> for more information). PHP 4 supports both: see <link - linkend="functions.variable-arg-list">Variable-length argument - lists</link> and the function references for - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> for more information. + PHP3ììë í¨ì íë¼ë©í°ì 기본ê°ì ì¤ì í´ì£¼ë ê² + (<link linkend="functions.arguments.default">Default argument values</link>를 ë³´ë¼.)ì ê°ë¥í´ë, + íë¼ë©í°ì ê°ì를 ê°ë³ì¼ë¡ ì¤ì íë ê²ì ë¶ê°ë¥íì§ë§, PHP4ë ëê°ì§ 모ë ê°ë¥íë¤. + ìì¸í ë´ì©ì <link linkend="functions.variable-arg-list">Variable-length argument lists</link>ì + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ìì ì¤ëª ì 보기 ë°ëë¤. </simpara> </sect1> @@ -48,24 +43,18 @@ <title>Function arguments</title> <simpara> - Information may be passed to functions via the argument list, - which is a comma-delimited list of variables and/or constants. + argument list를 íµí´ í¨ìì ì´ë¤ ì 보를 ëê²¨ì¤ ì ìë¤. + ì´ argument listë ì¼í(,)ë¡ ëëì´ì§ ë³ìë ììì listì´ë¤. </simpara> <para> - PHP supports passing arguments by value (the default), <link - linkend="functions.arguments.by-reference">passing by - reference</link>, and <link - linkend="functions.arguments.default">default argument - values</link>. Variable-length argument lists are supported only - in PHP 4 and later; see <link - linkend="functions.variable-arg-list">Variable-length argument - lists</link> and the function references for - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> for more information. A - similar effect can be achieved in PHP 3 by passing an array of - arguments to a function: - + PHPë passing by value(기본ì ì¼ë¡ ì´ê²ì ì¬ì©)ì + <link linkend="functions.arguments.by-reference">passing by reference</link>, + <link linkend="functions.arguments.default">default argument values</link>ì 3ê°ì§ ë°©ë²ì ì ê³µíë¤. + ê°ë³ 길ì´(Variable-length) argument listë PHP4ì´íììë§ ì ê³µëë¤. + ìì¸í ë´ì©ì <link linkend="functions.variable-arg-list">Variable-length argument lists</link>ì + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ìì ì¤ëª ì 보기 ë°ëë¤. + ê·¸ë¬ë PHP3ììë ë°°ì´ì íµí ì ë¬ì ì¬ì©íë¤ë©´ ë¹ì·í í¨ê³¼ë¥¼ ë¼ ì ìë¤. <informalexample> <programlisting role="php"> function takes_array($input) { @@ -79,17 +68,12 @@ <title>Making arguments be passed by reference</title> <simpara> - By default, function arguments are passed by value (so that if - you change the value of the argument within the function, it does - not get changed outside of the function). If you wish to allow a - function to modify its arguments, you must pass them by - reference. + 기본ê°ì¼ë¡ í¨ìì ì¸ì(argument)ë¤ì ê°ì¼ë¡ ì ë¬ëë¤(passed by value). + í¨ìë´ìì ë³íìí¨ ê°ì í¨ì ë°ììë ì ì©ìí¤ë ¤ë©´ pass by referenceë¡ ì¸ì를 ëê²¨ì¼ íë¤. </simpara> <para> - If you want an argument to a function to always be passed by - reference, you can prepend an ampersand (&) to the argument - name in the function definition: - + ì´ë¤ í¨ìì ì¸ì를 íì pass by referenceë¡ ëê¸°ë ¤ íë¤ë©´, + í¨ì를 ì ì¸í ë ampersand(&)를 ì¸ìì ìì ë¶ì¬ì£¼ë©´ ëë¤. : <informalexample> <programlisting role="php"> function add_some_extra(&$string) { @@ -103,9 +87,8 @@ </para> <para> - If you wish to pass a variable by reference to a function which - does not do this by default, you may prepend an ampersand to the - argument name in the function call: + ë§ì½ 기본ê°ì by value ë¡ íì§ë§ íìì ë°ë¼ by referenceë¡ í¸ì¶íê³ ì¶ë¤ë©´ + í¨ì í¸ì¶ ìì ì¸ìì ìì &를 ë¶ì´ë©´ ëë¤. : <informalexample> <programlisting role="php"> @@ -127,9 +110,7 @@ <title>Default argument values</title> <para> - A function may define C++-style default values for scalar - arguments as follows: - + ì¤ì¹¼ë¼ ì¸ì(argument)ì ëí´ìë ë¤ìê³¼ ê°ì´ C++ ê³¼ ë¹ì·íê² ê¸°ë³¸ê°ì ì í´ì¤ ì ìë¤. : <informalexample> <programlisting role="php"> function makecoffee ($type = "cappucino") { @@ -142,7 +123,7 @@ </para> <para> - The output from the above snippet is: + ìì ì½ëì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤ : <screen> Making a cup of cappucino. @@ -151,14 +132,12 @@ </para> <simpara> - The default value must be a constant expression, not (for - example) a variable or class member. + default ê°ì ë°ëì ììì´ì´ì¼ íë¤. + (ì를ë¤ì´) ë³ìë classì 멤ë²ë¥¼ ì¬ì©í´ìë ìëë¤. </simpara> <para> - Note that when using default arguments, any defaults should be on - the right side of any non-default arguments; otherwise, things - will not work as expected. Consider the following code snippet: - + default argument를 ì¬ì©í ë, defaultê° ëë ì¸ìë¤ì non-defaultì¸ ì¸ìë¤ë³´ë¤ + ì¤ë¥¸ìª½ì ìì¹í´ì¼ íë¤. ê·¸ë ì§ ìì¼ë©´ ìíë ê²°ê³¼ê° ëì¤ì§ ìëë¤. ë¤ìì ë³´ì. : <informalexample> <programlisting role="php"> function makeyogurt ($type = "acidophilus", $flavour) { @@ -171,7 +150,7 @@ </para> <para> - The output of the above example is: + ì ì½ëì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤ : <screen> Warning: Missing argument 2 in call to makeyogurt() in @@ -181,7 +160,7 @@ </para> <para> - Now, compare the above with this: + ê·¸ë¬ë©´ ì´ì ìì ê²ê³¼ ìëê²ì ë¹êµí´ ë³´ì. : <informalexample> <programlisting role="php"> @@ -195,7 +174,7 @@ </para> <para> - The output of this example is: + ì´ ìì ì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤. : <screen> Making a bowl of acidophilus raspberry. @@ -208,17 +187,14 @@ <title>Variable-length argument lists</title> <simpara> - PHP 4 has support for variable-length argument lists in - user-defined functions. This is really quite easy, using the - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> functions. + PHP4ììë ì¬ì©ì ì ì í¨ìì ê°ë³ 길ì´(Variable-length) argument list를 ì ê³µíë¤. + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ì를 ì¬ì©íì¬ ì½ê² ì¬ì©í ì ìë¤. </simpara> <simpara> - No special syntax is required, and argument lists may still be - explicitly provided with function definitions and will behave as - normal. + í¹ë³í 문ë²ì´ ì¬ì©ëì§ë ìê³ , í¨ìì ì ììë ì¬ì©ì argument listë + ë³´íµì ê²½ì°ì ëì¼íê² ì¬ì©íë©´ ëë¤. </simpara> </sect2> @@ -229,9 +205,8 @@ <title>Returning values</title> <para> - Values are returned by using the optional return statement. Any - type may be returned, including lists and objects. - + í¨ìë return 문ì íµí´ í¨ìê°ì ëë ¤ì¤ ì ìë¤. + listë object를 í¬í¨í ì´ë¤ typeë ëë ¤ì§ ì ìë¤. <informalexample> <programlisting role="php"> function square ($num) { @@ -243,8 +218,8 @@ </para> <para> - You can't return multiple values from a function, but similar - results can be obtained by returning a list. + ì¬ë¬ê°ì ëë ¤ì¤ ìë ìë¤. + ê·¸ë¬ë list를 ëë ¤ì¤ì¼ë¡ì¨ ë¹ì·í ì¼ì í ì ìë¤. : <informalexample> <programlisting role="php"> @@ -276,23 +251,20 @@ <title><literal>old_function</literal></title> <simpara> - The <literal>old_function</literal> statement allows you to - declare a function using a syntax identical to PHP/FI2 (except you - must replace 'function' with 'old_function'. + <literal>old_function</literal> 구문ì PHP/FI2ììì ëì¼í í¨ì ì¬ì©ë²ì ì ê³µíë¤. + (functionëì old_functionì ì¬ì©íë¤ë ì ì ì ì¸íê³ ) </simpara> <simpara> - This is a deprecated feature, and should only be used by the - PHP/FI2->PHP 3 convertor. + ì´ê²ì ì¬ì©íë ê²ì ë§¤ì° ì¢ì§ ìì ë°©ë²ì´ë¤. + ì´ê²ì´ ì¬ì©ë ëë PHP/FI2->PHP3 ë³í기ìì ë¿ì´ë¤. </simpara> <warning> <para> - Functions declared as <literal>old_function</literal> cannot be - called from PHP's internal code. Among other things, this means - you can't use them in functions such as - <function>usort</function>, <function>array_walk</function>, and - <function>register_shutdown_function</function>. You can get - around this limitation by writing a wrapper function (in normal - PHP 3 form) to call the <literal>old_function</literal>. + <literal>old_function</literal>ì¼ë¡ ì ìë í¨ìë¤ì PHPì ë´ë¶ ì½ëìì í¸ì¶ë ì ìë¤. + ì´ ë§ì <function>usort</function>ë, <function>array_walk</function>, + <function>register_shutdown_function</function>ê°ì í¨ìì ì¬ì©í ì ìë¤ë ì미ì´ë¤. + ì´ë¥¼ í´ê²°í기 ìí´ìë ì´ <literal>old_function</literal>ì¼ë¡ ì ì¸ë í¨ì를 í¸ì¶íë + PHP3 ííì í¨ì를 ë§ë¤ì´ ì¬ì©íë ê²ì´ë¤. </para> </warning> @@ -302,11 +274,9 @@ <title>Variable functions</title> <para> - PHP supports the concept of variable functions. This means that if - a variable name has parentheses appended to it, PHP will look for - a function with the same name as whatever the variable evaluates - to, and will attempt to execute it. Among other things, this can - be used to implement callbacks, function tables, and so forth. + PHPë ê°ë³ í¨ì(variable functions) ê°ë ì ì§ìíë¤. ì´ê²ì ë³ìëª ë¤ì ê´í¸ê° ìì ë, + PHPë ê·¸ ì´ë¦ì ê°ì§ í¨ì를 ì°¾ì ì¤ííë¤ë ê²ì ì미íë¤. + ì´ ê¸°ë¥ì callbacks, function table ë±ì 기ë¥ì ì¬ì©íë©´ ë§¤ì° ì ì©íê² ì¬ì©í ì ìë¤ </para> <para>
Index: phpdoc/kr/language/functions.xml diff -u phpdoc/kr/language/functions.xml:1.2 phpdoc/kr/language/functions.xml:1.3 --- phpdoc/kr/language/functions.xml:1.2 Tue Jan 9 16:41:17 2001 +++ phpdoc/kr/language/functions.xml Wed Jan 10 03:32:27 2001 @@ -1,11 +1,11 @@ - <chapter id="functions"> - <title>Functions</title> + <chapter id="functions"> + <title>í¨ì (Functions)</title> <sect1 id="functions.user-defined"> - <title>User-defined functions</title> + <title>ì¬ì©ì ì ì í¨ì (User-defined functions)</title> <para> - A function may be defined using syntax such as the following: + í¨ìë ë¤ìê³¼ ê°ì´ ì ìíë¤. : <informalexample> <programlisting role="php"> @@ -18,28 +18,23 @@ </para> <simpara> - Any valid PHP code may appear inside a function, even other - functions and <link linkend="keyword.class">class</link> - definitions. + í¨ì ììë ë¤ë¥¸ í¨ìë <link linkend="keyword.class">class</link>ì ì ì¸ ë±ì í¬í¨í 모ë ê°ë¥í PHP ì½ëê° ì¬ì©ë ì ìë¤. </simpara> <simpara> - In PHP 3, functions must be defined before they are referenced. No - such requirement exists in PHP 4. + PHP3ììë í¨ìë ê·¸ í¨ìê° ì¬ì©ë기 ì´ì ì ì ì¸ëì´ ìì´ì¼ íìì¼ë + PHP4ììë ì´ë° ì ì½ì´ ìì´ì¡ë¤. </simpara> <simpara> - PHP does not support function overloading, nor is it possible to - undefine or redefine previously-declared functions. + PHPë function overloadingì ì§ìíì§ ìê³ , + ì´ë¯¸ ì ìë í¨ì를 ì¬ì ìíê±°ë ìì ì§ ëª»íë¤. </simpara> <simpara> - PHP 3 does not support variable numbers of arguments to functions, - although default arguments are supported (see <link - linkend="functions.arguments.default">Default argument - values</link> for more information). PHP 4 supports both: see <link - linkend="functions.variable-arg-list">Variable-length argument - lists</link> and the function references for - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> for more information. + PHP3ììë í¨ì íë¼ë©í°ì 기본ê°ì ì¤ì í´ì£¼ë ê² + (<link linkend="functions.arguments.default">Default argument values</link>를 ë³´ë¼.)ì ê°ë¥í´ë, + íë¼ë©í°ì ê°ì를 ê°ë³ì¼ë¡ ì¤ì íë ê²ì ë¶ê°ë¥íì§ë§, PHP4ë ëê°ì§ 모ë ê°ë¥íë¤. + ìì¸í ë´ì©ì <link linkend="functions.variable-arg-list">Variable-length argument lists</link>ì + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ìì ì¤ëª ì 보기 ë°ëë¤. </simpara> </sect1> @@ -48,24 +43,18 @@ <title>Function arguments</title> <simpara> - Information may be passed to functions via the argument list, - which is a comma-delimited list of variables and/or constants. + argument list를 íµí´ í¨ìì ì´ë¤ ì 보를 ëê²¨ì¤ ì ìë¤. + ì´ argument listë ì¼í(,)ë¡ ëëì´ì§ ë³ìë ììì listì´ë¤. </simpara> <para> - PHP supports passing arguments by value (the default), <link - linkend="functions.arguments.by-reference">passing by - reference</link>, and <link - linkend="functions.arguments.default">default argument - values</link>. Variable-length argument lists are supported only - in PHP 4 and later; see <link - linkend="functions.variable-arg-list">Variable-length argument - lists</link> and the function references for - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> for more information. A - similar effect can be achieved in PHP 3 by passing an array of - arguments to a function: - + PHPë passing by value(기본ì ì¼ë¡ ì´ê²ì ì¬ì©)ì + <link linkend="functions.arguments.by-reference">passing by reference</link>, + <link linkend="functions.arguments.default">default argument values</link>ì 3ê°ì§ ë°©ë²ì ì ê³µíë¤. + ê°ë³ 길ì´(Variable-length) argument listë PHP4ì´íììë§ ì ê³µëë¤. + ìì¸í ë´ì©ì <link linkend="functions.variable-arg-list">Variable-length argument lists</link>ì + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ìì ì¤ëª ì 보기 ë°ëë¤. + ê·¸ë¬ë PHP3ììë ë°°ì´ì íµí ì ë¬ì ì¬ì©íë¤ë©´ ë¹ì·í í¨ê³¼ë¥¼ ë¼ ì ìë¤. <informalexample> <programlisting role="php"> function takes_array($input) { @@ -79,17 +68,12 @@ <title>Making arguments be passed by reference</title> <simpara> - By default, function arguments are passed by value (so that if - you change the value of the argument within the function, it does - not get changed outside of the function). If you wish to allow a - function to modify its arguments, you must pass them by - reference. + 기본ê°ì¼ë¡ í¨ìì ì¸ì(argument)ë¤ì ê°ì¼ë¡ ì ë¬ëë¤(passed by value). + í¨ìë´ìì ë³íìí¨ ê°ì í¨ì ë°ììë ì ì©ìí¤ë ¤ë©´ pass by referenceë¡ ì¸ì를 ëê²¨ì¼ íë¤. </simpara> <para> - If you want an argument to a function to always be passed by - reference, you can prepend an ampersand (&) to the argument - name in the function definition: - + ì´ë¤ í¨ìì ì¸ì를 íì pass by referenceë¡ ëê¸°ë ¤ íë¤ë©´, + í¨ì를 ì ì¸í ë ampersand(&)를 ì¸ìì ìì ë¶ì¬ì£¼ë©´ ëë¤. : <informalexample> <programlisting role="php"> function add_some_extra(&$string) { @@ -103,9 +87,8 @@ </para> <para> - If you wish to pass a variable by reference to a function which - does not do this by default, you may prepend an ampersand to the - argument name in the function call: + ë§ì½ 기본ê°ì by value ë¡ íì§ë§ íìì ë°ë¼ by referenceë¡ í¸ì¶íê³ ì¶ë¤ë©´ + í¨ì í¸ì¶ ìì ì¸ìì ìì &를 ë¶ì´ë©´ ëë¤. : <informalexample> <programlisting role="php"> @@ -127,9 +110,7 @@ <title>Default argument values</title> <para> - A function may define C++-style default values for scalar - arguments as follows: - + ì¤ì¹¼ë¼ ì¸ì(argument)ì ëí´ìë ë¤ìê³¼ ê°ì´ C++ ê³¼ ë¹ì·íê² ê¸°ë³¸ê°ì ì í´ì¤ ì ìë¤. : <informalexample> <programlisting role="php"> function makecoffee ($type = "cappucino") { @@ -142,7 +123,7 @@ </para> <para> - The output from the above snippet is: + ìì ì½ëì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤ : <screen> Making a cup of cappucino. @@ -151,14 +132,12 @@ </para> <simpara> - The default value must be a constant expression, not (for - example) a variable or class member. + default ê°ì ë°ëì ììì´ì´ì¼ íë¤. + (ì를ë¤ì´) ë³ìë classì 멤ë²ë¥¼ ì¬ì©í´ìë ìëë¤. </simpara> <para> - Note that when using default arguments, any defaults should be on - the right side of any non-default arguments; otherwise, things - will not work as expected. Consider the following code snippet: - + default argument를 ì¬ì©í ë, defaultê° ëë ì¸ìë¤ì non-defaultì¸ ì¸ìë¤ë³´ë¤ + ì¤ë¥¸ìª½ì ìì¹í´ì¼ íë¤. ê·¸ë ì§ ìì¼ë©´ ìíë ê²°ê³¼ê° ëì¤ì§ ìëë¤. ë¤ìì ë³´ì. : <informalexample> <programlisting role="php"> function makeyogurt ($type = "acidophilus", $flavour) { @@ -171,7 +150,7 @@ </para> <para> - The output of the above example is: + ì ì½ëì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤ : <screen> Warning: Missing argument 2 in call to makeyogurt() in @@ -181,7 +160,7 @@ </para> <para> - Now, compare the above with this: + ê·¸ë¬ë©´ ì´ì ìì ê²ê³¼ ìëê²ì ë¹êµí´ ë³´ì. : <informalexample> <programlisting role="php"> @@ -195,7 +174,7 @@ </para> <para> - The output of this example is: + ì´ ìì ì ì¤í ê²°ê³¼ë ë¤ìê³¼ ê°ë¤. : <screen> Making a bowl of acidophilus raspberry. @@ -208,17 +187,14 @@ <title>Variable-length argument lists</title> <simpara> - PHP 4 has support for variable-length argument lists in - user-defined functions. This is really quite easy, using the - <function>func_num_args</function>, - <function>func_get_arg</function>, and - <function>func_get_args</function> functions. + PHP4ììë ì¬ì©ì ì ì í¨ìì ê°ë³ 길ì´(Variable-length) argument list를 ì ê³µíë¤. + <function>func_num_args</function>, <function>func_get_arg</function>, + <function>func_get_args</function> í¨ì를 ì¬ì©íì¬ ì½ê² ì¬ì©í ì ìë¤. </simpara> <simpara> - No special syntax is required, and argument lists may still be - explicitly provided with function definitions and will behave as - normal. + í¹ë³í 문ë²ì´ ì¬ì©ëì§ë ìê³ , í¨ìì ì ììë ì¬ì©ì argument listë + ë³´íµì ê²½ì°ì ëì¼íê² ì¬ì©íë©´ ëë¤. </simpara> </sect2> @@ -229,9 +205,8 @@ <title>Returning values</title> <para> - Values are returned by using the optional return statement. Any - type may be returned, including lists and objects. - + í¨ìë return 문ì íµí´ í¨ìê°ì ëë ¤ì¤ ì ìë¤. + listë object를 í¬í¨í ì´ë¤ typeë ëë ¤ì§ ì ìë¤. <informalexample> <programlisting role="php"> function square ($num) { @@ -243,8 +218,8 @@ </para> <para> - You can't return multiple values from a function, but similar - results can be obtained by returning a list. + ì¬ë¬ê°ì ëë ¤ì¤ ìë ìë¤. + ê·¸ë¬ë list를 ëë ¤ì¤ì¼ë¡ì¨ ë¹ì·í ì¼ì í ì ìë¤. : <informalexample> <programlisting role="php"> @@ -276,23 +251,20 @@ <title><literal>old_function</literal></title> <simpara> - The <literal>old_function</literal> statement allows you to - declare a function using a syntax identical to PHP/FI2 (except you - must replace 'function' with 'old_function'. + <literal>old_function</literal> 구문ì PHP/FI2ììì ëì¼í í¨ì ì¬ì©ë²ì ì ê³µíë¤. + (functionëì old_functionì ì¬ì©íë¤ë ì ì ì ì¸íê³ ) </simpara> <simpara> - This is a deprecated feature, and should only be used by the - PHP/FI2->PHP 3 convertor. + ì´ê²ì ì¬ì©íë ê²ì ë§¤ì° ì¢ì§ ìì ë°©ë²ì´ë¤. + ì´ê²ì´ ì¬ì©ë ëë PHP/FI2->PHP3 ë³í기ìì ë¿ì´ë¤. </simpara> <warning> <para> - Functions declared as <literal>old_function</literal> cannot be - called from PHP's internal code. Among other things, this means - you can't use them in functions such as - <function>usort</function>, <function>array_walk</function>, and - <function>register_shutdown_function</function>. You can get - around this limitation by writing a wrapper function (in normal - PHP 3 form) to call the <literal>old_function</literal>. + <literal>old_function</literal>ì¼ë¡ ì ìë í¨ìë¤ì PHPì ë´ë¶ ì½ëìì í¸ì¶ë ì ìë¤. + ì´ ë§ì <function>usort</function>ë, <function>array_walk</function>, + <function>register_shutdown_function</function>ê°ì í¨ìì ì¬ì©í ì ìë¤ë ì미ì´ë¤. + ì´ë¥¼ í´ê²°í기 ìí´ìë ì´ <literal>old_function</literal>ì¼ë¡ ì ì¸ë í¨ì를 í¸ì¶íë + PHP3 ííì í¨ì를 ë§ë¤ì´ ì¬ì©íë ê²ì´ë¤. </para> </warning> @@ -302,11 +274,9 @@ <title>Variable functions</title> <para> - PHP supports the concept of variable functions. This means that if - a variable name has parentheses appended to it, PHP will look for - a function with the same name as whatever the variable evaluates - to, and will attempt to execute it. Among other things, this can - be used to implement callbacks, function tables, and so forth. + PHPë ê°ë³ í¨ì(variable functions) ê°ë ì ì§ìíë¤. ì´ê²ì ë³ìëª ë¤ì ê´í¸ê° ìì ë, + PHPë ê·¸ ì´ë¦ì ê°ì§ í¨ì를 ì°¾ì ì¤ííë¤ë ê²ì ì미íë¤. + ì´ ê¸°ë¥ì callbacks, function table ë±ì 기ë¥ì ì¬ì©íë©´ ë§¤ì° ì ì©íê² ì¬ì©í ì ìë¤ </para> <para>