Module 2 Flashcards
It is a symbol that specifies a particular action in an expression.
operator
This operator is for object instantiation.
new
This operator is for expression subgrouping.
( )
This operator is for index enclosure.
[ ]
This operator is for error suppression.
@
This operator is for expression separation.
,
It is a characteristic of an operator that specifies how operations of the same precedence are evaluated as they are executed.
Operator Associativity
It is a characteristic of operators that determines the order in which they evaluate the operands surrounding them.
Operator Precedence
Arithmetic Operators in PHP
+, -, *, /, %
Assignment Operators in PHP
= | assignment
+= | add-ass
-= | sub-ass
*= | mult-ass
/= | div-ass
%= | mod-ass
.= | concat-ass
What is the operator used to check if values are identical (i.e. same value and data type)
=== | ($a === $b)
What is the escape sequence for carriage return.
\r
What is the escape sequence for octal notation.
\ [0-7]{1,3}
What is the escape sequence for hexadecimal notation.
\x[0-9A-Fa-f]{1,2}
What are the looping statements in PHP?
for, while, and do-while
What are the conditional statements in PHP?
if, elseif, else, and switch