Basic PHP What will be the output of the following code?function track() {static $count = 0;$count++;echo $count;}track();track();track(); 111 000 123 011 111 000 123 011 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 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 both values to strings and compares them It converts them to a common compatible data type and then compares the resulting 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 both values to strings and compares them ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$total = "25 students";$more = 10;$total = $total + $more;echo "$total"; 25 students 35 students Error 35 25 students 35 students Error 35 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the looping statements is/are supported by PHP?1. for loop2. while loop3. do-while loop4. foreach loop 1, 2 and 3 All of the mentioned None of the mentioned 1 and 2 1, 2 and 3 All of the mentioned None of the mentioned 1 and 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Multiple namespaces cannot be defined in the same file. FALSE TRUE FALSE TRUE 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]);} AshleyBaleBlank Shrek ShrekBlank AshleyBale AshleyBaleBlank Shrek ShrekBlank AshleyBale ANSWER DOWNLOAD EXAMIANS APP