Basic PHP What will be the output of the following PHP code?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user); $x++){if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBale ShrekBlank Shrek AshleyBaleBlank AshleyBale ShrekBlank Shrek AshleyBaleBlank 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 What will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1 2 1234 Error 1 2 1234 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below namespace declaration is correct? namespace ORA_#; namespace 1_RA; namespace ORA: namespace ORA; namespace ORA_#; namespace 1_RA; namespace ORA: namespace ORA; ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 1 12 5 Error 1 12 5 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 BobBob My name is BobMy name is Bob My name is Bob Bob Error My name is BobBob My name is BobMy name is Bob ANSWER DOWNLOAD EXAMIANS APP