Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 12 5 1 Error 12 5 1 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following code?$foo = 'Bob';$bar = &$foo;$bar = "My name is $bar";echo $bar;echo $foo; My name is Bob Bob Error My name is BobMy name is Bob My name is BobBob My name is Bob Bob Error My name is BobMy name is Bob My name is BobBob ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the conditional statements is/are supported by PHP?1. if statements2. if-else statements3. if-elseif statements4. switch statements 1, 2 and 4 All of the mentioned. Only 1 2, 3 and 4 1, 2 and 4 All of the mentioned. Only 1 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which statement will output $x on the screen? echo “$$x”; echo “\$x”; echo “/$x”; echo “$x;”; echo “$$x”; echo “\$x”; echo “/$x”; echo “$x;”; ANSWER DOWNLOAD EXAMIANS APP
Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ 1, 3 and 4 Both 2 and 4 Only 2 2, 3 and 4 1, 3 and 4 Both 2 and 4 Only 2 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following code?function track() {static $count = 0;$count++;echo $count;}track();track();track(); 123 011 000 111 123 011 000 111 ANSWER DOWNLOAD EXAMIANS APP