PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia");echo greeting;} Welcome to Narnia GREETING ERROR greeting Welcome to Narnia GREETING ERROR greeting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?function do($myString) {echo strpos($myString, "donkey",0);}do("The donkey looks like a horse."); None of the mentioned 4 2 5 None of the mentioned 4 2 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions A function in PHP which starts with ______ (double underscore) is know as. User Defined Function Inbuilt Function Default Function Magic Function User Defined Function Inbuilt Function Default Function Magic Function ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will happen in this function call?function calc($price, $tax) {$total = $price + $tax;}$pricetag = 15;$taxtag = 3;calc($pricetag, $taxtag); Call By Value Default Argument Value Call By Reference Type Hinting Call By Value Default Argument Value Call By Reference Type Hinting ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Type Hinting was introduced in which version of PHP? PHP 6 PHP 4 PHP 5 PHP 5.3 PHP 6 PHP 4 PHP 5 PHP 5.3 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(); HelloWorld No Output Error sayHello HelloWorld No Output Error sayHello ANSWER DOWNLOAD EXAMIANS APP