Basic PHP What will be the output of the following php code?$num = "1";$num1 = "2";print $num+$num1; 3 1+2 12 Error 3 1+2 12 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP How does the identity operator === compare two values? 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 bases its comparison on the C strcmp function exclusively It converts both values to strings and compares them 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 If the two values are strings, it performs a lexical comparison It bases its comparison on the C strcmp function exclusively It converts both values to strings and compares them It converts them to a common compatible data type and then compares the resulting values ANSWER DOWNLOAD EXAMIANS APP
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 What will be the output of the following PHP code?$a = 5;$b = 5;echo ($a === $b); Error False 1 5 === 5 Error False 1 5 === 5 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]);} AshleyBale Shrek ShrekBlank AshleyBaleBlank AshleyBale Shrek ShrekBlank AshleyBaleBlank ANSWER DOWNLOAD EXAMIANS APP
Basic PHP You can test the type of any variable with the ..... function. settype() gettype() showtype() whattype() settype() gettype() showtype() whattype() ANSWER DOWNLOAD EXAMIANS APP