Basic PHP What will be the output of the following PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 35 students 25 students 35 Error 35 students 25 students 35 Error 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]);} AshleyBaleBlank AshleyBale ShrekBlank Shrek AshleyBaleBlank AshleyBale ShrekBlank Shrek ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What is the value of $a and $b after the function call?function doSomething( &$arg ) {$return = $arg;$arg += 1;return $return;}$a = 3;$b = doSomething( $a ); a is 3 and b is 4 Both are 4 a is 4 and b is 3 Both are 3 a is 3 and b is 4 Both are 4 a is 4 and b is 3 Both are 3 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; All of the mentioned Both 1 and 2 Only 1 Only 3 All of the mentioned Both 1 and 2 Only 1 Only 3 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 1 and 2 1, 2 and 3 All of the mentioned 1, 2 and 4 1 and 2 1, 2 and 3 All of the mentioned ANSWER DOWNLOAD EXAMIANS APP