IT Questions and Answers :)

Tuesday, March 20, 2018

Which of these is NOT a PHP class?

Which of these is NOT a PHP class?

  • PDO
  • XMLReader
  • ErrorLog
  • DateTime 

 
Which of these is NOT a PHP class?

EXPLANATION

"ErrorLog" is the correct answer.  PHP has a function called "error_log", but it returns true/false and there is no object-oriented version like there is with some of the other classes.
PDO is a PHP extension for working with databases. XMLReader and DateTime are also classes, though they both have procedural versions too.

Share:

0 comments:

Post a Comment

Popular Posts