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 What will be the output of the following code?function track() {static $count = 0;$count++;echo $count;}track();track();track(); 111 000 011 123 111 000 011 123 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 All of the mentioned None of the mentioned 1, 2 and 3 1 and 2 All of the mentioned None of the mentioned 1, 2 and 3 1 and 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ 1, 3 and 4 Only 2 Both 2 and 4 2, 3 and 4 1, 3 and 4 Only 2 Both 2 and 4 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Within a namespace, for accessing the built-in PHP classes you can prefix the class name with a . . . . . and let PHP look in the global class list. ampersand asterix percent backslash ampersand asterix percent backslash 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