svn: /phpdoc/kr/trunk/ appendices/debugger.xml reference/misc/functions/constant.xml

[email protected] (LEE Yun-young)
Newsgroups php.doc.kr
Message-ID <[email protected]>
progcom                                  Mon, 23 Feb 2015 10:05:28 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=335979

Log:
contribution reviewed

Changed paths:
    U   phpdoc/kr/trunk/appendices/debugger.xml
    A   phpdoc/kr/trunk/reference/misc/functions/constant.xml

Modified: phpdoc/kr/trunk/appendices/debugger.xml
===================================================================
--- phpdoc/kr/trunk/appendices/debugger.xml	2015-02-23 10:05:19 UTC (rev 335978)
+++ phpdoc/kr/trunk/appendices/debugger.xml	2015-02-23 10:05:28 UTC (rev 335979)
@@ -1,12 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: progcom Status: ready -->
+<!-- EN-Revision: 335796 Maintainer: progcom Status: ready -->
+<!-- CREDITS: TaeL Kim -->
+<!-- Reviewed: yes Maintainer: progcom -->
  <appendix xml:id="debugger" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
   <title>PHP에서 디버깅</title>

   <sect1 xml:id="debugger-about">
    <title>PHP에서 디버깅에 대하여</title>
    <simpara>
-    PHP는 내부 디버깅 기능을 가지고 있지 않습니다. 다음의 외부 디버거를 사용할
+    PHP 5.6은 <link linkend="migration56.new-features.phpdbg">phpdbg 인터랙티브 디버거</link>를 탑재하고 있습니다.
+    PHP 5.6 미만 버전은 내부 디버깅 기능을 가지고 있지 않습니다. 다음의 외부 디버거를 사용할
     수 있습니다. <link xlink:href="&url.zend.ide;">Zend IDE</link>는 디버거를
     포함하고 있고, 다음과 같은 많은 무료 디버거가 존재합니다. <link
      xlink:href="&url.dbg;">&url.dbg;</link>의 DBG, <link

Added: phpdoc/kr/trunk/reference/misc/functions/constant.xml
===================================================================
--- phpdoc/kr/trunk/reference/misc/functions/constant.xml	                        (rev 0)
+++ phpdoc/kr/trunk/reference/misc/functions/constant.xml	2015-02-23 10:05:28 UTC (rev 335979)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 299326 Maintainer: TaeL Kim Status: ready -->
+<!-- Reviewed: yes Maintainer: progcom -->
+
+<refentry xml:id="function.constant" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>constant</refname>
+  <refpurpose>상수 값을 반환합니다</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>mixed</type><methodname>constant</methodname>
+   <methodparam><type>string</type><parameter>name</parameter></methodparam>
+  </methodsynopsis>
+  <simpara>
+   <parameter>name</parameter>이 가리키는 상수 값을 반환합니다.
+  </simpara>
+  <simpara>
+   <function>constant</function>는 이름을 모르는 상수 값을 얻어올 때 유용합니다.
+   예를 들면, 변수에 저장되어 있거나, 함수로부터 반환되는 경우입니다.
+  </simpara>
+  <simpara>
+   이 함수는 <link linkend="language.oop5.constants">클래스 상수</link>에도 동작합니다.
+  </simpara>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>name</parameter></term>
+     <listitem>
+      <para>
+       상수 이름.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   상수의 값을 반환하거나, 상수가 정의되지 않았을 경우 &null;을 반환합니다.
+  </para>
+ </refsect1>
+
+ <refsect1 role="errors">
+  &reftitle.errors;
+  <para>
+   상수가 정의되어 있지 않은 경우, <constant>E_WARNING</constant> 레벨 에러가 발생합니다.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>constant</function> 예제</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+define("MAXSIZE", 100);
+
+echo MAXSIZE;
+echo constant("MAXSIZE"); // 바로 앞 라인과 동일합니다
+
+
+interface bar {
+    const test = 'foobar!';
+}
+
+class foo {
+    const test = 'foobar!';
+}
+
+$const = 'test';
+
+var_dump(constant('bar::'. $const)); // string(7) "foobar!"
+var_dump(constant('foo::'. $const)); // string(7) "foobar!"
+
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>define</function></member>
+    <member><function>defined</function></member>
+    <member><link linkend="language.constants">상수</link> 섹션</member>
+   </simplelist>
+  </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->


Property changes on: phpdoc/kr/trunk/reference/misc/functions/constant.xml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
   + native
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.