Basic PHP Which of the following is not valid PHP code? &$something $aVaR $_10 ${“MyVar”} $10_somethings &$something $aVaR $_10 ${“MyVar”} $10_somethings ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 25 students 35 35 students Error 25 students 35 35 students Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following PHP statements will output Hello World on the screen?1. echo (“Hello World”);2. print (“Hello World”);3. printf (“Hello World”);4. sprintf (“Hello World”); 1, 2 and 4 All of the mentioned 1, 2 and 3 1 and 2 1, 2 and 4 All of the mentioned 1, 2 and 3 1 and 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$a = 5;$b = 5;echo ($a === $b); False 1 5 === 5 Error False 1 5 === 5 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ 2, 3 and 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 ANSWER DOWNLOAD EXAMIANS APP