Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; $var a Error r $var a Error r 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 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 Both are 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP PHP files have a default file extension of_______. .xml .html .php .ph .xml .html .php .ph 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. FALSE TRUE FALSE TRUE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP You can test the type of any variable with the ..... function. settype() whattype() showtype() gettype() settype() whattype() showtype() gettype() ANSWER DOWNLOAD EXAMIANS APP