Which of the following expressions will evaluate to a random value from an array below?
$array = array("Sue","Mary","John","Anna");
Answer : D
Before the headers are sent, how can you remove a previously set header?
Answer : A
Your supervisor wants you to disallow PHP scripts to open remote HTTP and FTP resources using PHP's file functions. Which php.ini setting should you change accordingly?
See Below Explanation:
Answer : A
What is the result of the following code?
class T
{
const A = 42 + 1;
}
echo T::A;
Answer : C
What is the output of this code?
$world = 'world';
echo <<<'TEXT'
hello $world
TEXT;
Answer : C
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
Answer : A, B
Which DOMElement property provides a reference to the list of the element's children?
See Below Explanation:
Answer : A