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 3 a is 4 and b is 3 a is 3 and b is 4 Both are 4 Both are 3 a is 4 and b is 3 a is 3 and b is 4 Both are 4 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(); 011 111 123 000 011 111 123 000 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP With the introduction of namespaces, the same function name can be used in multiple places. FALSE TRUE FALSE TRUE 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 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 1, 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$a = "clue";$a .= "get";echo "$a"; false clueget true get false clueget true get 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]);} Shrek AshleyBaleBlank ShrekBlank AshleyBale Shrek AshleyBaleBlank ShrekBlank AshleyBale ANSWER DOWNLOAD EXAMIANS APP