PHP Functions What will be the output of the following PHP code ?function calc($num1, $num2){$total = $num1 * $num2;}$result = calc(42, 0);echo $result; 42 0 Error 84 42 0 Error 84 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Which of the following are valid function names?1. function()2. €()3. .function()4. $function() All of the mentioned Only 2 3 and 4 None of the mentioned All of the mentioned Only 2 3 and 4 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Functions strlen() returns the length of the string on success and . . . . if the string is empty. -1 NULL Garbage value 0 -1 NULL Garbage value 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’); 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 ) 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 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Functions What will be the output of the following PHP code ?function mine($num){$num = 2 + $num;echo $num;}mine(3); None of the mentioned 5 $num 3 None of the mentioned 5 $num 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Functions A function in PHP which starts with ______ (double underscore) is know as. Inbuilt Function Magic Function User Defined Function Default Function Inbuilt Function Magic Function User Defined Function Default Function ANSWER DOWNLOAD EXAMIANS APP