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 a is 4 and b is 3 Both are 4 Both are 3 a is 3 and b is 4 a is 4 and b is 3 Both are 4 Both are 3 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 Variables always start with a ........ in PHP Pond-sign Euro-sign Dollar-sign Yen-sign Pond-sign Euro-sign Dollar-sign Yen-sign ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following is/are a PHP code editor?1. Notepad2. Notepad++3. Adobe Dreamweaver4. PDT Only 3 Only 4 1, 2 and 3 All of the mentioned Only 3 Only 4 1, 2 and 3 All of the mentioned ANSWER DOWNLOAD EXAMIANS APP
Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ Both 2 and 4 1, 3 and 4 2, 3 and 4 Only 2 Both 2 and 4 1, 3 and 4 2, 3 and 4 Only 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following code?$foo = 'Bob';$bar = &$foo;$bar = "My name is $bar";echo $bar;echo $foo; Error My name is BobBob My name is Bob Bob My name is BobMy name is Bob Error My name is BobBob My name is Bob Bob My name is BobMy name is Bob ANSWER DOWNLOAD EXAMIANS APP