Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; a $var r Error a $var r Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = "1";$num1 = "2";print $num+$num1; 1+2 Error 12 3 1+2 Error 12 3 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 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 Both are 4 a is 3 and b is 4 Both are 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ Only 2 1, 3 and 4 Both 2 and 4 2, 3 and 4 Only 2 1, 3 and 4 Both 2 and 4 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP PHP considers the following values as False the one-character string 0 both A and B the integer 0 constant NULL All of Above the one-character string 0 both A and B the integer 0 constant NULL All of Above ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. PRE Automatic Default Global PRE Automatic Default Global ANSWER DOWNLOAD EXAMIANS APP