Basic PHP When a simple data type is casted to an array, an array is created with the original value in the first element. True False True False ANSWER DOWNLOAD EXAMIANS APP
Basic PHP How does the identity operator === compare two values? If the two values are strings, it performs a lexical comparison It converts them to a common compatible data type and then compares the resulting values It converts both values to strings and compares them It bases its comparison on the C strcmp function exclusively It returns True only if they are both of the same type and value If the two values are strings, it performs a lexical comparison It converts them to a common compatible data type and then compares the resulting values It converts both values to strings and compares them It bases its comparison on the C strcmp function exclusively It returns True only if they are both of the same type and value 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 BobMy name is Bob My name is BobBob Error My name is Bob Bob My name is BobMy name is Bob My name is BobBob Error My name is Bob Bob 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(); 111 011 000 123 111 011 000 123 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 What will be the output of the following PHP code?$a = "clue";$a .= "get";echo "$a"; get clueget true false get clueget true false ANSWER DOWNLOAD EXAMIANS APP