From 3b471dff1427137ed837b8c9fa38cdb741fa8f45 Mon Sep 17 00:00:00 2001 From: Steph Fox Date: Sun, 9 Nov 2003 13:25:39 +0000 Subject: [PATCH] tidying previous update git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144035 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index 9c88b5e8a0..0b8f04c4e9 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,27 +1,27 @@ - + Operators 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. - 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 Operator Precedence. - 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.