menu

PHP Functions

PHP Functions - Important Points


11. Which PHP function is used to get the last error message?

A. error_get_last()

B. last_error()

C. get_error()

D. error_message()

Discuss Work Space

Answer: option a

Explanation:

The error_get_last() function is used to get the last error message in PHP.

12. Which PHP function is used to remove elements from an array?

A. unset()

B. remove()

C. delete()

D. pop()

Discuss Work Space

Answer: option a

Explanation:

The unset() function is used to remove elements from an array in PHP.

13. Which PHP function is used to convert a string to lowercase?

A. strtolower()

B. to_lowercase()

C. lower()

D. convert_lower()

Discuss Work Space

Answer: option a

Explanation:

The strtolower() function is used to convert a string to lowercase in PHP.

14. Which PHP function is used to sort an array in ascending order?

A. sort()

B. ascending()

C. order()

D. arrange()

Discuss Work Space

Answer: option a

Explanation:

The sort() function is used to sort an array in ascending order in PHP.

15. Which PHP function is used to check if a file exists?

A. file_exists()

B. exists_file()

C. check_file()

D. file_check()

Discuss Work Space

Answer: option a

Explanation:

The file_exists() function is used to check if a file exists in PHP.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now