You’d like to use the class MyDBConnection that’s defined in the MyGreatFramework\MyGreatDatabaseAbstracti
You’d like to use the class MyDBConnection that’s defined in the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do? A. Import the MyGreatFramework namespace B. Import the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace C. Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer\MyDBConnection to a shorter name D. Alias […]
What function allows resizing of PHP’s file write buffer?
What function allows resizing of PHP’s file write buffer? A. ob_start() B. set_write_buffer() C. stream_set_write_buffer() D. Change the output_buffering INI setting via ini_set() function
What is the method used to execute XPath queries in the SimpleXML extension?
What is the method used to execute XPath queries in the SimpleXML extension? A. xpathQuery() B. xpath() C. simpleXMLXpath() D. query() E. evaluate()
What is the difference between the spaceship operator (<=>) and the strcmp() function?
What is the difference between the spaceship operator () and the strcmp() function? A. There is no difference in functionality B. strcmp() returns a Boolean value, the spaceship operator a number C. strcmp() does a case-intensive comparison, the spaceship operator does not D. The spaceship operator returns -1, 0 or 1; strcmp() may return any […]
Consider the following two files. When you run test.php, what would the output look like?
Consider the following two files. When you run test.php, what would the output look like? A. 12,12 B. 12,24 C. 24,12 D. 24,24 E. PHP Fatal error: Cannot redeclare strlen()