tidying previous update

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144035 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Steph Fox 2003-11-09 13:25:39 +00:00
parent 4b98ae1161
commit 3b471dff14

View file

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.54 $ -->
<!-- $Revision: 1.55 $ -->
<chapter id="language.operators">
<title>Operators</title>
<simpara>
An operator is something that you feed with one or more values (or
expressions in the programing jargon) and yields another value (so that the
expressions, in programming jargon) which yields another value (so that the
construction itself becomes an expression). So you can think of functions
or constructions that return a value (like print) as operators and those
that return nothing (like echo) as any other thing.
</simpara>
<para>
There are a few types of operators, there is the unairy operator which
There are three types of operators. Firstly there is the unary operator which
operates on only one value, for example ! (the negation operator) or ++
(the increment operator). The second group is called binary operators; this
group contains of the most operators that PHP supports and a list follows
(the increment operator). The second group are termed binary operators; this
group contains most of the operators that PHP supports, and a list follows
below in the section <link linkend="language.operators.precedence">Operator
Precedence</link>.
</para>
<para>
The third 'group is the ternairy operator: ?:. It should be used to select
between two expressions depending on a third one, not to select two
sentences or paths of execution. And always surrounding ?: expressions with
parenthesis is also a very good idea.
The third group is the ternary operator: ?:. It should be used to select
between two expressions depending on a third one, rather than to select two
sentences or paths of execution. Surrounding ternary expressions with
parentheses is a very good idea.
</para>
<sect1 id="language.operators.precedence">