Which functions would you use?
You need to escape special characters to use user input inside a regular expression. Which
functions would you use? (Choose 2)
When a browser requests an image identified by an img tag, it never sends a Cookie header.
When a browser requests an image identified by an img tag, it never sends a Cookie header.
How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML obje
How can the id attribute of the 2nd baz element from the XML string below be retrieved from the
SimpleXML object found inside $xml?
<code>
<?xmlversion=’1.0′?>
<foo>
<bar>
<baz id=”1″>One</baz>
<baz id=”2″>Two</baz>
</bar>
</foo>
</code>
What does an object based on the Active Record pattern provide?
What does an object based on the Active Record pattern provide?
What function can reverse the order of values in an array without the loss of key information?
What function can reverse the order of values in an array without the loss of key information?
Which of the following rules must every correct XML document adhere to?
Which of the following rules must every correct XML document adhere to? (Choose 2)
What is the result of the following code?
What is the result of the following code?
<code>
$a = 1;
$b = “1”;
var_dump($a === $b);
</code>
Identify the security vulnerability in the following example?
Identify the security vulnerability in the following example?
<code>
1 <?php
2 mail(‘feedback@example.org’,
3 ‘Feddback’,
4 ‘Here is my feedback.’,
5 “From: {$_COOKIE[’email’]}”);
6 ?>
</code>
Which of the following code snippets is correct?
Which of the following code snippets is correct? (Choose 2)
<code>
a)
interfaceDrawable {
abstractfunction draw();
}
b)
interfacePoint {
functiongetX();
functiongetY();
}
c)
interfaceLine extends Point {
functiongetX2();
functiongetY2();
}
d)
interfaceCircle implements Point {
functiongetRadius();
}
</code>
What is the result of the following code: <code> classT { const A = 42 + 1; } echo A; </code>
What is the result of the following code:
<code>
classT
{
const A = 42 + 1;
}
echo A;
</code>