Which value will be assigned to the key O in the following code?
CORRECT TEXT Which value will be assigned to the key O in the following code? View AnswerAnswer: 1
Which php.ini setting should you change accordingly?
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?View AnswerAnswer: allow_url_fopen=off, allow_url_fopen=Off,
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)A . Store session data in a different location with session.save_path .B . Store session data in a database.C . Enable safe_mode.D . Set session.name to something...
Which of these error types may be handled by a user defined error handler function? {Choose two.)
Which of these error types may be handled by a user defined error handler function? {Choose two.)A . E_ERRORB . E_NOTICEC . E_PARSED . E_WARNINGView AnswerAnswer: A,C
Which of the following rules must every correct XML document adhere to? (Choose 2)
Which of the following rules must every correct XML document adhere to? (Choose 2)A . It has to be well-formed.B . It has to be valid.C . It has to be associated to a DTE . It may only contain UTF-8 encoded characters.View AnswerAnswer: A, B
echo array_key_exists('foo', $x)?
What is the output of the following code? class Foo Implements Array Access { function offsetExists($k) { return true;} function offsetGet($k) {return 'a';} function offsetSet($k, $v) {} function offsetUnset($k) {} } $x = new Foo(); echo array_key_exists('foo', $x)?'true':'false';A . trueB . falseView AnswerAnswer: B
Which of the following is an invalid DOM save method?
Which of the following is an invalid DOM save method?A . save()B . saveFile()C . saveXML()D . saveHTML()E . saveHTMLFile()View AnswerAnswer: B
An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?
An HTML form has two submit buttons. After submitting the form, how can you determine with PHP which button was clicked?A . An HTML form may only have one button.B . You cannot determine this with PHP only. You must use JavaScript to add a value to the URL depending...
What will the following code print out?
What will the following code print out? $str = '✔ one of the following'; echo str_replace('&#l0004;', 'Check', $str);A . Check one of the followingB . one of the followingC . ✔ one of the followingView AnswerAnswer: A
<?xml version='1.0'?
The XML document below has been parsed into $xml via SimpleXML. How can the value of <foo> tag accessed? <?xml version='1.0'?> <document> <bar> <foo>Value</foo> </bar> </document>A . $xml->bar['foo']B . $xml->bar->fooC . $xml['document']['bar']['foo']D . $xml->document->bar->fooE . $xml->getElementByName('foo');View AnswerAnswer: B