cvs: phpdoc /kr/language basic-syntax.xml
| From: | WonHee Hwang | Date: | Tue, 09 Jan 2001 04:43:55 +0000 |
| Subject: | cvs: phpdoc /kr/language basic-syntax.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333496@lists.php.net to get a copy of this message | ||
regina Mon Jan 8 20:43:55 2001 EDT
Added files:
/phpdoc/kr/language basic-syntax.xml
Log:
Index: phpdoc/kr/language/basic-syntax.xml
+++ phpdoc/kr/language/basic-syntax.xml
<!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com
-->
<chapter id="language.basic-syntax">
<title>기본 문ë²(Basic syntax)</title>
<sect1 id="language.basic-syntax.phpmode">
<title>HTMLë¡ë¶í° ë¹ ì ¸ëì¤ê¸°(Escaping from
HTML)</title>
<para>
HTMLë¡ë¶í° ë¹ ì ¸ëì "PHP code mode"ë¡
ë¤ì´ê°ë ë°©ë²ì ë¤ì 4ê°ì§ê° ìë¤ :
</para>
<para>
<example>
<title>Ways of escaping from HTML</title>
<programlisting>
1. <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
2. <?php echo("if you want to serve XHTML or XML documents, do like this\n");
?>
3. <script language="php">
echo ("some editors (like FrontPage) don't
like processing instructions");
</script>
4. <% echo ("You may optionally use ASP-style tags"); %>
<%= $variable; # This is a shortcut for "<%echo .." %>
</programlisting>
</example>
</para>
<para>
첫ë²ì§¸ ë°©ë²ì short tagsê° enableëì´ ìì´ì¼
ì¬ì©ê°ë¥íë¤.
PHP config file (php.ini)ì <link
linkend="ini.short-open-tag">short_open_tag</link>ì ì¤ì ì
í´ ì£¼ê±°ë,
ì»´íì¼ìì <command>configure</command>
ì¤í¬ë¦½í¸ì ìµì
ì¼ë¡ --enable-short-tagsì 주ì´
ì¤ì í ì ìë¤.
</para>
<para>
ëë²ì§¸ ë°©ë²ì ì¼ë°ì ì¼ë¡ ê°ì¥
ì í¸ëë ë°©ë²ì´ë¤.
ì´ ë°©ë²ì ì°¨ì¸ë ì¸ì´ì¸ XHTMLììë
ì¬ì©ê°ë¥íë¤.
</para>
<para>
ë¤ë²ì§¸ ë°©ë²ì ASP-style tagsê° enableëì´ ìì´ì¼
ì¬ì©ê°ë¥íë¤.
PHP config file (php.ini)ì <link
linkend="ini.asp-tags">asp_tags</link>ì íµí´
ì¤ì íë¤.
<note>
<para>ASP-style tagsë 3.0.4ë¶í° ì§ìëë¤.</para>
</note>
</para>
<para>
ë«ë ê´í¸ë newlineì í¬í¨íë¤.
</para>
</sect1>
<sect1 id="language.basic-syntax.instruction-separation">
<title>ëª
ë ¹ êµ¬ë¶ ê¸°í¸(Instruction separation)</title>
<simpara>
ê°ê°ì ëª
ë ¹ì Cë Perlê³¼ ê°ì 기í¸ë¥¼
ì¬ì©íì¬ êµ¬ë¶íë¤. ì¦, í 문ì¥ì
;(ì¸ë¯¸ì½ë¡ )ì¼ë¡ ì¢
ë£íë¤.
</simpara>
<para>
PHPì ì¢
ë£íì¸ ?>ë 문ì¥ì ëì´ë¼ë
ì미ë í¨ê» ê°ì§ê³ ìë¤. ë°ë¼ì ë¤ì
ë ê°ì 문ì¥ì ëì¼íë¤.:
<informalexample>
<programlisting>
<?php
echo "This is a test";
?>
<?php echo "This is a test" ?>
</programlisting>
</informalexample>
</para>
</sect1>
<sect1 id="language.basic-syntax.comments">
<title>주ì문 (Comments)</title>
<para>
PHPë 'C'ì 'C++', Unix shell ííì
주ì문ì 모ë ì ê³µíë¤. ì를 ë¤ì´ :
<informalexample>
<programlisting>
<?php
echo "This is a test"; // This is a one-line c++ style comment
/* This is a multi line comment
yet another line of comment */
echo "This is yet another test";
echo "One Final Test"; # This is shell-style style comment
?>
</programlisting>
</informalexample>
</para>
<simpara>
íì¤ì§ë¦¬ 주ì문ì ë¼ì¸ì ëì´ë,
í´ë¹ php ì½ë ë¸ë¡ì ëìì ëëë¤.
</simpara>
<informalexample>
<programlisting>
<h1>This is an <?php # echo "simple";?> example.</h1>
<p>The header above will say 'This is an example'.
</programlisting>
</informalexample>
<simpara>
'C' ííì 주ì문ì ì¤ë³µí´ì
ì¬ì©íì§ ìëë¡ ì£¼ìíì.
</simpara>
<informalexample>
<programlisting>
<?php
/*
echo "This is a test"; /* This comment will cause a problem */
*/
?>
</programlisting>
</informalexample>
</sect1>
</chapter>
<!-- 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
sgml-parent-document:nil
sgml-default-dtd-file:"../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->