mirror of
https://github.com/php/doc-ru.git
synced 2026-03-24 15:52:13 +01:00
80 lines
3.0 KiB
XML
Executable File
80 lines
3.0 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: ede9d209f64d4cd71bf22fcfaed14c6fc269523c Maintainer: sergey Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
|
||
<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:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|