Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; $var a Error r $var a Error r 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 converts both values to strings and compares them 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 If the two values are strings, it performs a lexical comparison It converts both values to strings and compares them 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 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]);} ShrekBlank AshleyBaleBlank AshleyBale Shrek ShrekBlank AshleyBaleBlank AshleyBale Shrek ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = 1;$num1 = 2;print $num . "+". $num1; 1.+.2 1+2 Error 3 1.+.2 1+2 Error 3 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP As the namespace size grows, using namespaces can become a little repetitious, but PHP also provides the . . . . . statement, which allows you to alias a specific namespace. use label php grant use label php grant ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following must be installed on your computer so as to run PHP script?1. Adobe Dreamweaver2. PHP3. Apache4. IIS 2, 3 and 4 2 and 3 All of the mentioned. Only 2 2, 3 and 4 2 and 3 All of the mentioned. Only 2 ANSWER DOWNLOAD EXAMIANS APP