200-550

200-550 practice questions, page 9 of 9, with answer review and explanations.

Question 41

SimpleXML provides the ability to iterate over items in an XML document, as well as access items within it as if they were object properties. When creating your own classes to access data, implementing which of the following would NOT achieve this goal?

  1. __toString
  2. Iterator
  3. __get/__set
  4. ArrayAccess

Question 42

Which of the following is used to find all PHP files under a certain directory?

  1. PHPIterator
  2. RecursiveTreeIterator
  3. RecursiveDirectoryIterator
  4. SplTempFileObject

Question 43

SIMULATION - Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP?

Question 44

SIMULATION - Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP, and also save the contents into another folder?