MCQs
You need not specify the datatype in php.
.(dot) is used to combine two parts of the statement. Example ( $num . "Hello World ) will output 1Hello World.
The $bar = &$foo; line will reference $foo via $bar.
The numbers inside the double quotes are considered as integers and not string, therefore the value 3 is printed and not 1+2.
A variable can't start with a number. Also $this is a special variable that can't be assigned, but $This can be assigned.
a += b is an addition assignment whose outcome is a = a + b. Same can be done with subtraction,multiplication,division etc.
Because $count is static, it retains its previous value each time the function is executed.
A backslash is used so that the dollar sign is treated as a normal string character rather than prompt PHP to treat $x as a variable. The backslash used in this manner is known as escape character.
.= is a concatenation-assignment. $a equals its current value concatenated with "get.
If a break statement isn't present, all subsequent case blocks will execute until a break statement is located.