Basic PHP Which of the below symbols is a newline character? \r \n /r /n \r \n /r /n 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]);} AshleyBale Shrek ShrekBlank AshleyBaleBlank AshleyBale Shrek ShrekBlank AshleyBaleBlank 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
Basic PHP Multiple namespaces cannot be defined in the same file. TRUE FALSE TRUE FALSE 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 parameter is Boolean When the function contains only one parameter When the function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the parameter is Boolean When the function contains only one parameter When the function is being declared as a member of a class When the parameter is being declared as passed by reference 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 ); Both are 4 a is 3 and b is 4 Both are 3 a is 4 and b is 3 Both are 4 a is 3 and b is 4 Both are 3 a is 4 and b is 3 ANSWER DOWNLOAD EXAMIANS APP