PHP Functions Which one of the following functions can be used to compress a string? zip() gzcompress() zip_compress() compress() zip() gzcompress() zip_compress() compress() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?define("GREETING","Hello you! How are you today?");echo constant("GREETING"); GREETING, Hello you! How are you today? Hello you! How are you today? “GREETING”,”Hello you! How are you today?” GREETING GREETING, Hello you! How are you today? Hello you! How are you today? “GREETING”,”Hello you! How are you today?” GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Functions The below statement will return.$Var = substr(""abcdef"", -4, 1); returns "cd" returns "c" returns "f" returns "d" returns "cd" returns "c" returns "f" returns "d" ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sum($num1, $num2) {$total = $num1 + $num2;echo "chr($total)";}$var1 = "sum";$var1(5, 44); 49 Error 1 Sum 49 Error 1 Sum ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function email(){$email = ’contact@examians.com’;$new = strstr($email, ‘@');echo $new;}email(); @examians.com contact contact@examians.com examians.com @examians.com contact contact@examians.com examians.com ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function sayHello() {echo "HelloWorld";}$function_holder = "sayHello";$function_holder(); No Output HelloWorld sayHello Error No Output HelloWorld sayHello Error ANSWER DOWNLOAD EXAMIANS APP