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 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
Basic PHP PHP considers the following values as False constant NULL both A and B All of Above the integer 0 the one-character string 0 constant NULL both A and B All of Above the integer 0 the one-character string 0 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP With the introduction of namespaces, the same function name can be used in multiple places. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What is the value of $a and $b after the function call?function doSomething( &$arg ) {$return = $arg;$arg += 1;return $return;}$a = 3;$b = doSomething( $a ); Both are 4 Both are 3 a is 4 and b is 3 a is 3 and b is 4 Both are 4 Both are 3 a is 4 and b is 3 a is 3 and b is 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Variables always start with a ........ in PHP Dollar-sign Pond-sign Euro-sign Yen-sign Dollar-sign Pond-sign Euro-sign Yen-sign ANSWER DOWNLOAD EXAMIANS APP