1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-23 22:52:11 +01:00
Files
archived-doc-ja/language/control-structures.xml
Yoshinari Takaoka 9ee4ec2ff4 Clarify the syntax and role of arguments for echo and print
- Rather than implying that parentheses are optional, make clear
  that they are never part of the syntax for these keywords.
- Don't spend so many examples on different types of string.
- Do include examples of non-string arguments.
- Add a note with additional examples of how parentheses interact.
- Don't refer to either construct as "function-like", instead use
  the term "expression" consistently.
- Additional tidying to make the pages more consistent with each
  other.
- Add "print" to the list of language constructs which are
  documented as functions.
- Remove mention of what PHP versions below 5.4 did with short
  echo tags.
2021-03-11 21:57:34 +09:00

77 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ede9d209f64d4cd71bf22fcfaed14c6fc269523c Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi,shimooka,mumumu -->
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>制御構造</title>
<sect1 xml:id="control-structures.intro">
<title>はじめに</title>
<simpara>
すべての PHP スクリプトは、一連の文からなります。
文としては、代入、関数コール、ループ、条件文、そして何もしない文(空の文)
さえ使用することができます。
文は、通常セミコロンで終了します。加えて、文は、中括弧によるグループ文で
カプセル化することによりグループ化することが可能です。
グループ文は、同時に文にもなります。
本章では、様々な文の型について説明します。
</simpara>
<sect2 role="seealso">
&reftitle.seealso;
<para>
以下は、このマニュアルで関数として参照されていますが、言語構造の一部とも見なされています。
</para>
<para>
<simplelist>
<member><function>list</function></member>
<member><function>array</function></member>
<member><function>echo</function></member>
<member><function>eval</function></member>
<member><function>print</function></member>
</simplelist>
</para>
</sect2>
</sect1>
&language.control-structures.if;
&language.control-structures.else;
&language.control-structures.elseif;
&language.control-structures.alternative-syntax;
&language.control-structures.while;
&language.control-structures.do-while;
&language.control-structures.for;
&language.control-structures.foreach;
&language.control-structures.break;
&language.control-structures.continue;
&language.control-structures.switch;
&language.control-structures.match;
&language.control-structures.declare;
&language.control-structures.return;
&language.control-structures.require;
&language.control-structures.include;
&language.control-structures.require-once;
&language.control-structures.include-once;
&language.control-structures.goto;
</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
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:
-->