PHP Functions What will be the output of the following PHP code?function onespan>() {define("const","I am awesome!");echo constant("const");}one(); “const”,”I am awesome!” const I am awesome!! const, I am awesome!! “const”,”I am awesome!” const I am awesome!! const, I am awesome!! ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Returning values from functions may include ..... Both A & B None of above Arrays Objects Both A & B None of above Arrays Objects ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} ERROR Welcome to Narnia GREETING greeting ERROR Welcome to Narnia GREETING greeting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;return $total; }$result = calc(42, 0);echo $result; 84 0 Error 42 84 0 Error 42 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which one of the following functions can be used to compress a string? zip_compress() gzcompress() compress() zip() zip_compress() gzcompress() compress() zip() ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} greeting Welcome to Narnia GREETING ERROR greeting Welcome to Narnia GREETING ERROR ANSWER DOWNLOAD EXAMIANS APP