1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which version introduced the function error_get_last()?

Added 19 Jan 2024

Which version introduced the function error_get_last()?

  1. PHP 4
  2. PHP 5
  3. HP 5.2 Correct answer
  4. PHP 5.3

Correct answer

C. HP 5.2

15 views

MCQSEXAM

Explanation

The function error_get_last() was introduced in PHP version 5.2.0. This function allows you to retrieve information about the last error that occurred, even if it has already been handled or logged. It returns an associative array with details such as the error type, message, file, and line.

If you want to use this function, make sure your PHP version is 5.2.0 or newer. As of my last knowledge update in January 2022, later versions of PHP may have been released, and it's always a good idea to use the latest stable version for security and feature updates.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs