Which of the following does NOT help to protect against session hijacking and fixation attacks?
What is the name of the PHP function used to automatically load non-yet defined classes?
What is the output of the following code?
class C {
public $x = 1;
function __construct() { ++$this->x; }
function __invoke() { return ++$this->x; }
function __toString() { return (string) --$this->x; }
}
$obj = new C();
echo $obj();
What function can be used to retrieve an array of current options for a stream context?
You want to parse a URL into its single parts. Which function do you choose?
Which of the following is true about stream contexts? (Choose 2)
Which php.ini setting is usually required to use an opcode cache?
How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.
$obj = new MyObject();
array_walk($array, $obj);
What parsing methodology is utilized by the SimpleXML extension?
Which of the following statements about Reflection is correct?