Basic PHP We can use _________ to comment a single line?1. /?2. //3. #4. /* */ Both 2 and 4 2, 3 and 4 Only 2 1, 3 and 4 Both 2 and 4 2, 3 and 4 Only 2 1, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; Error r a $var Error r a $var 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”); All of the mentioned 1, 2 and 3 1 and 2 1, 2 and 4 All of the mentioned 1, 2 and 3 1 and 2 1, 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP You can test the type of any variable with the ..... function. showtype() whattype() gettype() settype() showtype() whattype() gettype() settype() ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. PRE Default Automatic Global PRE Default Automatic Global 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; My name is BobBob Error My name is BobMy name is Bob My name is Bob Bob My name is BobBob Error My name is BobMy name is Bob My name is Bob Bob ANSWER DOWNLOAD EXAMIANS APP