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 Bob Bob My name is BobBob My name is BobMy name is Bob Error My name is Bob Bob My name is BobBob My name is BobMy name is Bob ANSWER DOWNLOAD EXAMIANS APP
Basic PHP How does the identity operator === compare two values? 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 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 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user); $x++){if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBaleBlank ShrekBlank AshleyBale Shrek AshleyBaleBlank ShrekBlank AshleyBale Shrek ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a ..... 0, 1 blank string, 2 empty variable, 1 blank string, 1 0, 1 blank string, 2 empty variable, 1 blank string, 1 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below statements is equivalent to $add += $add ? $add = $add +$add $add = $add + 1 $add = $add + $add + 1 $add = $add $add = $add +$add $add = $add + 1 $add = $add + $add + 1 $add = $add ANSWER DOWNLOAD EXAMIANS APP
Basic PHP PHP considers the following values as False the integer 0 both A and B the one-character string 0 constant NULL All of Above the integer 0 both A and B the one-character string 0 constant NULL All of Above ANSWER DOWNLOAD EXAMIANS APP