What will the function call return?
Consider the following code:
<code>
strspn($test, ‘aeiou’, 1);
</code>
The variable $test contains the string “You get certified”.
What will the function call return?
What is the output of the following code?
What is the output of the following code?
<code>
try{
classMyException extends Exception {};
try{
thrownew MyException;
}
catch(Exception $e) {
echo”1:”;
throw$e;
}catch(MyException $e) {
echo”2:”;
throw$e;
}}
catch(Exception $e) {
echoget_class($e);
}
</code>
Which of the following statements is true?
Which of the following statements is true?
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
The constructs for(), foreach(), and each() can all be used to iterate an object if the object
How can XML parsing errors be suppressed in the SimpleXML extension?
How can XML parsing errors be suppressed in the SimpleXML extension?
Which sentence describes the following regular expression match? <code> preg_match(‘/^\d*(?:\.[0-9
Which sentence describes the following regular expression match?
<code>
preg_match(‘/^\d*(?:\.[0-9]+)?$/’, $test);
</code>
What is the output of the following code…?
What is the output of the following code:
<code>
str_replace(array(“Apple”,”Orange”), array(“Orange”,”Apple”), “Oranges are orange and Apples are green”);
</code>
which circumstances is the $_SESSION super-global available?
Under which circumstances is the $_SESSION super-global available?(Choose 2)
What will be the output of the following code?
What will be the output of the following code?
<code>
$a = array(0, 1, 2 => array(3, 4));
$a[3] = array(4, 5);
echocount($a, 1);
</code>
Which of the following code snippets writes the content of the file "source.txt" to "target.txt
Which of the following code snippets writes the content of the file “source.txt” to “target.txt”?
(Choose 3)