sfox Sun Nov 9 08:25:40 2003 EDT
Modified files:
/phpdoc/en/language operators.xml
Log:
tidying previous update
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.54 phpdoc/en/language/operators.xml:1.55
--- phpdoc/en/language/operators.xml:1.54 Sun Nov 9 07:17:31 2003
+++ phpdoc/en/language/operators.xml Sun Nov 9 08:25:39 2003
@@ -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">