What is the return value of the following code: substr _compare("foobar", "bar", 3);
What is the return value of the following code: substr _compare("foobar", "bar", 3);A . -1B . 1C . TRUED . 0E . FALSEView AnswerAnswer: D
What is the return value of the following code: substr _compare("foobar", "bar", 3);A . -1B . 1C . TRUED . 0E . FALSEView AnswerAnswer: D
Which elements does the array returned by the function pathinfo() contain?A . root, dir, fileB . dirname, filename, fileextensionC . dirname, basename, extensionD . path, fileView AnswerAnswer: C
What is the output of the following code? function z($x) { return function ($y) use ($x) { return str_repeat($y, $x); }; $a== z(2); $b = z(3); echo $a(3) . $b(2);A . 22333B . 33222C ....
The following form is loaded in a browser and submitted, with the checkbox activated: <form method="post"> <input type="checkbox" name="accept" /> </form> In the server-side PHP code to deal with the form data, what is the...
What is the output of the following code? for ($i = 0; $i < 1.02; $i += 0.17) { $a[$i] = $i; } echo count($a);A . 0B . 1C . 2D . 6E . 7View...
What is "instanceof" an example of?A . a booleanB . an operatorC . a functionD . a language construct E: a class magicView AnswerAnswer: B
Which of the following expressions will evaluate to a random value from an array below? $array= array("Sue","Mary","John","Anna");A . array_rand($array);B . array_rand($array, 1);C . shuffle($array);D . $array[array_rand($array)];E . array_values($array, ARRAY_RANDOM);View AnswerAnswer: D
What is the output of the following code? echo '1' . (print '2') + 3;A . 123B . 213C . 142D . 214 E: Syntax errorView AnswerAnswer: D
What is the difference between "print" and "echo"?A . There is no difference.B . Print has a return value, echo does notC . Echo has a return value, print does notD . Print buffers the...
What will be the result of the following operation? array_combine(array("A", "B", "C"), array(l,2,3));A . array("A","B","C",1,2,3)B . array(1,2,3, "A", "B",C")C . array("A"=>1,"B"=>2,"C"=>3)D . array(1=>"A",2=>"B",3=>"C")E . array(1,2,3)View AnswerAnswer: C