Basic PHP What will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1234 Error 2 1 1234 Error 2 1 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$num = 10;echo 'What is her age? \n She is $num years old'; What is her age? She is 10 years old What is her age?n She is 10 years old What is her age? n She is $num years old What is her age? She is $num years old What is her age? She is 10 years old What is her age?n She is 10 years old What is her age? n She is $num years old What is her age? She is $num years old 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; 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 My name is Bob Bob ANSWER DOWNLOAD EXAMIANS APP
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]);} Shrek AshleyBale ShrekBlank AshleyBaleBlank Shrek AshleyBale ShrekBlank AshleyBaleBlank ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Multiple namespaces cannot be defined in the same file. FALSE TRUE FALSE TRUE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the looping statements is/are supported by PHP?1. for loop2. while loop3. do-while loop4. foreach loop None of the mentioned All of the mentioned 1 and 2 1, 2 and 3 None of the mentioned All of the mentioned 1 and 2 1, 2 and 3 ANSWER DOWNLOAD EXAMIANS APP