My Hands Aren’t Short!
PHP Tutorial Series
Continue your learning with these articles
How Many Operators do You Want Already?
PHP Array operators are operators that are used on arrays. Who would have guessed? The first operator that we’ll look at is the + operator. You would think that this operator would be used to merge two arrays, taking elements from both arrays and merging them into a new array, but that is not the case.
My Hands Aren’t Short!
PHP – P22: Shorthand Operators
PHP shorthand operators are amazing! There, I said it. The shorthand operator combines the expression on the right with the assignment operator.
WHICH OPERATORS COME FIRST?
PHP – P23: OPERATOR PRECEDENCE
PHP Operator precedence just looks at which operation will be performed first. You’ve seen operator precedence in mathematics. The multiplication and division operators are executed before the addition and subtraction operators. With all of the different operators that we have in PHP, the interpreter needs to know which operation to perform in what order.