mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-24 08:52:09 +01:00
83 lines
2.7 KiB
XML
83 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: ede9d209f64d4cd71bf22fcfaed14c6fc269523c Maintainer: yannick 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>Les structures de contrôle</title>
|
|
|
|
<sect1 xml:id="control-structures.intro">
|
|
<title>Introduction</title>
|
|
<simpara>
|
|
Tous les scripts PHP sont une suite d'instructions. Une instruction
|
|
peut être une assignation, un appel de fonction, une instruction
|
|
conditionnelle ou bien une instruction qui ne fait rien (une instruction
|
|
vide). Une instruction se termine habituellement par un point virgule
|
|
("<literal>;</literal>"). De plus, plusieurs instructions peuvent être
|
|
regroupées en bloc, délimité par des
|
|
accolades ("<literal>{}</literal>"). Un bloc est considéré
|
|
comme une instruction. Les différents types d'instructions sont
|
|
décrits dans ce chapitre.
|
|
</simpara>
|
|
|
|
<sect2 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
Les éléments suivant sont considérés comme des structures de contrôles
|
|
même s'ils sont référencés dans les fonctions dans la documentation.
|
|
</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
|
|
-->
|