Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. Default PRE Automatic Global Default PRE Automatic Global 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]);} ShrekBlank AshleyBale Shrek AshleyBaleBlank ShrekBlank AshleyBale Shrek AshleyBaleBlank 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 3 1 and 2 1, 2 and 4 All of the mentioned 1, 2 and 3 1 and 2 1, 2 and 4 All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following php statement/statements will store 111 in variable num?1. int $num = 111;2. int mum = 111;3. $num = 111;4. 111 = $num; Only 3 Both 1 and 2 All of the mentioned Only 1 Only 3 Both 1 and 2 All of the mentioned Only 1 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. asterix percent backslash ampersand asterix percent backslash ampersand ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1234 1 Error 2 1234 1 Error 2 ANSWER DOWNLOAD EXAMIANS APP