Which one of the following PHP functions can be used to build a function that accepts any number of arguments? func_get_argc() get_argv() func_get_argv() get_argc() TRUE ANSWER : ? YOUR ANSWER : ?
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 ( [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 ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function b() {<br/>echo "b is executed";<br/>}<br/>function a()<br/>{<br/>b();<br/>echo "a is executed";<br/>b();<br/>}<br/>a(); b is executeda is executed b is executeda is executedb is executed a is executed b is executedb is executedb is executed TRUE ANSWER : ? YOUR ANSWER : ?
A function in PHP which starts with ______ (double underscore) is know as. Inbuilt Function Default Function User Defined Function Magic Function TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following PHP functions can be used to find files? glob() file() fold() get_file() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function sayHello() {<br/>echo "HelloWorld";<br/>}<br/>$function_holder = "sayHello";<br/>$function_holder(); Error sayHello No Output HelloWorld TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function email()<br/>{<br/>$email = ’contact@examians.com’;<br/>$new = strstr($email, ‘@');<br/>echo $new;<br/>}<br/>email(); @examians.com examians.com contact@examians.com contact TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo hex2bin("48656c6c6f20576f726c6421"); welcome to india Hello World! MCQ questons This is PHP! TRUE ANSWER : ? YOUR ANSWER : ?
Above usleep() function pauses PHP for .usleep(1000000); 10 seconds 1 microseconds 1 second 100 microseconds TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>function TV($string)<br/>{<br/>echo "my favourite TV show is ".$string;<br/>function b() <br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>}<br/>a("Sherlock");<br/>b(); my favourite TV show is SherlockI am here ro spoil this code I am here to spoil this code None of the mentioned Error TRUE ANSWER : ? YOUR ANSWER : ?