Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; $var r Error a $var r Error a 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 If the two values are strings, it performs a lexical comparison It converts both values to strings and compares them It returns True only if they are both of the same type and value 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 If the two values are strings, it performs a lexical comparison It converts both values to strings and compares them It returns True only if they are both of the same type and value It bases its comparison on the C strcmp function exclusively 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
Basic PHP What will be the output of the following PHP code?$num = 10;echo 'What is her age? \n She is $num years old'; What is her age? She is 10 years old What is her age? She is $num years old What is her age?n She is 10 years old What is her age? n She is $num years old What is her age? She is 10 years old What is her age? She is $num years old What is her age?n She is 10 years old What is her age? n She is $num years old 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"; } Error I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu Error I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu 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(); 123 000 111 011 123 000 111 011 ANSWER DOWNLOAD EXAMIANS APP