What DOMElement method should be used to check for availability of a non-namespaced attribute?
What DOMElement method should be used to check for availability of a non-namespaced
attribute?
Identify the security vulnerability in the following example: <code> 1 <?php 2 echo "Welcome, {$
Identify the security vulnerability in the following example:
<code>
1 <?php
2 echo “Welcome, {$_POST[‘name’]}.”;
3 ?>
</code>
How many times will the function counter() be executed in the following code?
How many times will the function counter() be executed in the following code?
<code>
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
} counter($start–, ++$stop);
}
$start = 5;
$stop = 2;
counter($start, $stop);
</code>
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PH
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by
value in PHP 4?
What is the content of $c after the following code has executed?
What is the content of $c after the following code has executed?
<code>
$a = 2;
$b = 3;
$c = ($a++ * ++$b);
</code>
What does that mean?
You analyze the code of a collegue and see, it uses the function strcasecmp. You try it out to see
what it does and use the following function call:
<code>
strcasecmp(‘hello my dear!’, ‘Hello my DEAR!’);
</code>
The function call returns “0”. What does that mean?
REST is a(n) …
REST is a(n) …
What is the output of the following code?
What is the output of the following code?
<code>
echo 0x33, ‘ monkeys sit on ‘, 011, ‘ trees.’;
</code>
which function should be used for the best possible result?
When checking whether two English words are pronounced alike, which function should be used
for the best possible result?
what is correct?
Given the following code, what is correct?
<code>
function f(stdClass &$x = NULL) { $x = 42;
}
$z = new stdClass;
f($z);
var_dump($z);
</code>