Basic PHP What will be the output of the following php code?$num = "1";$num1 = "2";print $num+$num1; Error 1+2 12 3 Error 1+2 12 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP How does the identity operator === compare two values? It bases its comparison on the C strcmp function exclusively If the two values are strings, it performs a lexical comparison It returns True only if they are both of the same type and value 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 If the two values are strings, it performs a lexical comparison It returns True only if they are both of the same type and value 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 We can use _________ to comment a single line?1. /?2. //3. #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 Both 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. PRE Global Default Automatic PRE Global Default Automatic ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$team = "arsenal";switch ($team) {case "manu":echo "I love man u";case "arsenal":echo "I love arsenal";case "manc":echo "I love manc"; } I love arsenal I love arsenalI love mancI love manu I love arsenalI love manc Error I love arsenal I love arsenalI love mancI love manu I love arsenalI love manc Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following is not valid PHP code? &$something $10_somethings ${“MyVar”} $_10 $aVaR &$something $10_somethings ${“MyVar”} $_10 $aVaR ANSWER DOWNLOAD EXAMIANS APP