Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; r $var Error a r $var Error a ANSWER DOWNLOAD EXAMIANS APP
Basic PHP strval() None of above Accepts a value and converts it into an string dictionary Accepts a value and converts it into string equivalent Accepts a value and converts it into a string array None of above Accepts a value and converts it into an string dictionary Accepts a value and converts it into string equivalent Accepts a value and converts it into a string array 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 $num years old What is her age? She is 10 years old What is her age? n She is $num years old What is her age?n She is 10 years old What is her age? She is $num years old What is her age? She is 10 years old What is her age? n She is $num years old What is her age?n She is 10 years old ANSWER DOWNLOAD EXAMIANS APP
Basic PHP PHP does not support numbers written in hexadecimal, octal or scientific notation. False True False True 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 converts both values to strings and compares them 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 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 both values to strings and compares them 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 returns True only if they are both of the same type and value ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the conditional statements is/are supported by PHP?1. if statements2. if-else statements3. if-elseif statements4. switch statements All of the mentioned. 1, 2 and 4 2, 3 and 4 Only 1 All of the mentioned. 1, 2 and 4 2, 3 and 4 Only 1 ANSWER DOWNLOAD EXAMIANS APP