PHP Functions What will be the output of the following PHP code ?function constant(){define("GREETING", "Welcome to Narnia",true);echo greeting;} ERROR greeting Welcome to Narnia GREETING ERROR greeting Welcome to Narnia GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code?$op2 = "blabla";function foo($op1) {echo $op1;echo $op2;}foo("hello"); helloblabla hello error helloblablablabla helloblabla hello error helloblablablabla ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function mine($m){if ($m < 0)echo "less than 0";if ($ >= 0)echo "Not True";}mine(0); Less Than 0 None of the Mentioned No Output Not True Less Than 0 None of the Mentioned No Output Not True ANSWER DOWNLOAD EXAMIANS APP
PHP Functions A function in PHP which starts with ______ (double underscore) is know as. Default Function Magic Function User Defined Function Inbuilt Function Default Function Magic Function User Defined Function Inbuilt Function 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 GREETING, Hello you! How are you today? “GREETING”,”Hello you! How are you today?” Hello you! How are you today? GREETING GREETING, Hello you! How are you today? “GREETING”,”Hello you! How are you today?” Hello you! How are you today? ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’); Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 ) Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 ) Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 ) Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 ) Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 ) Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 ) Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 ) Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 ) ANSWER DOWNLOAD EXAMIANS APP