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]);} AshleyBaleBlank AshleyBale Shrek ShrekBlank AshleyBaleBlank AshleyBale Shrek ShrekBlank 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 PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 25 students 35 students Error 35 25 students 35 students Error 35 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? Never When the function contains only one parameter When the parameter is Boolean When the parameter is being declared as passed by reference When the function is being declared as a member of a class Never When the function contains only one parameter When the parameter is Boolean When the parameter is being declared as passed by reference When the function is being declared as a member of a class 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 Only 1 1, 2 and 4 All of the mentioned. 2, 3 and 4 Only 1 1, 2 and 4 All of the mentioned. 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following must be installed on your computer so as to run PHP script?1. Adobe Dreamweaver2. PHP3. Apache4. IIS 2, 3 and 4 2 and 3 All of the mentioned. Only 2 2, 3 and 4 2 and 3 All of the mentioned. Only 2 ANSWER DOWNLOAD EXAMIANS APP