Basic PHP Which of the following php statement/statements will store 111 in variable num?1. int $num = 111;2. int mum = 111;3. $num = 111;4. 111 = $num; All of the mentioned Only 1 Only 3 Both 1 and 2 All of the mentioned Only 1 Only 3 Both 1 and 2 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 Bob Bob Error My name is BobBob My name is BobMy name is Bob My name is Bob Bob Error My name is BobBob ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1234 2 1 Error 1234 2 1 Error 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
Basic PHP Which of following variables can be assigned a value to it?1. $3hello2. $_hello3. $this4. $This Only 2 2 and 4 All of the mentioned 2, 3 and 4 Only 2 2 and 4 All of the mentioned 2, 3 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP How does the identity operator === compare two values? It converts them to a common compatible data type and then compares the resulting values It returns True only if they are both of the same type and value It converts both values to strings and compares them If the two values are strings, it performs a lexical comparison It bases its comparison on the C strcmp function exclusively It converts them to a common compatible data type and then compares the resulting values It returns True only if they are both of the same type and value It converts both values to strings and compares them If the two values are strings, it performs a lexical comparison It bases its comparison on the C strcmp function exclusively ANSWER DOWNLOAD EXAMIANS APP