mirror of
https://github.com/php/doc-pl.git
synced 2026-04-26 00:08:12 +02:00
68 lines
2.6 KiB
XML
68 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 2946c8a267734a9e8696e1764f7436e6caa8909c Maintainer: sobak Status: ready -->
|
|
<!-- $Revision$ -->
|
|
<chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook" annotations="interactive">
|
|
<title>Operatory</title>
|
|
<simpara>
|
|
Operatory to coś, co przyjmuje jedną lub więcej wartości (lub
|
|
wyrażeń, w terminologii technicznej) i daje inną wartość (tak że
|
|
konstrukcja sama w sobie staje się wyrażeniem).
|
|
</simpara>
|
|
<para>
|
|
Operatory można pogrupować ze względu na liczbę wartości, które przyjmują. Operatory
|
|
jednoargumentowe przyjmują tylko jedną wartość, na przykład <literal>!</literal>
|
|
(<link linkend="language.operators.logical">operator logiczny zaprzeczenia</link>) lub
|
|
<literal>++</literal>
|
|
(<link linkend="language.operators.increment">operator inkrementacji</link>).
|
|
Operatory dwuargumentowe przyjmują dwie wartości, tak jak dobrze znane wszystkim
|
|
<link linkend="language.operators.arithmetic">operatory arytmetyczne</link>
|
|
<literal>+</literal> (plus) i <literal>-</literal> (minus), i zasadniczo
|
|
większość operatorów w PHP znalazłaby się w tej kategorii. Istnieje też
|
|
<link linkend="language.operators.comparison.ternary">operator
|
|
trójkowy</link>, <literal>? :</literal>, który przyjmuje trzy wartości; nazywa
|
|
się go zazwyczaj właśnie "operatorem trójkowym" (mimo że być może
|
|
lepszą nazwą byłby operator warunkowy).
|
|
</para>
|
|
<para>
|
|
Pełna lista operatorów PHP dostępna jest w sekcji
|
|
<link linkend="language.operators.precedence">Pierwszeństwo operatorów</link>.
|
|
Ta sekcja wyjaśnia też kolejność wykonywania operatorów i jakie dane są przypisywane,
|
|
co steruje tym, jak są wykonywane wyrażenia składające się z kilku różnych operatorów.
|
|
</para>
|
|
|
|
&language.operators.precedence;
|
|
&language.operators.arithmetic;
|
|
&language.operators.increment;
|
|
&language.operators.assignment;
|
|
&language.operators.bitwise;
|
|
&language.operators.comparison;
|
|
&language.operators.errorcontrol;
|
|
&language.operators.execution;
|
|
&language.operators.logical;
|
|
&language.operators.string;
|
|
&language.operators.array;
|
|
&language.operators.type;
|
|
&language.operators.functional;
|
|
|
|
</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
|
|
-->
|