Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

How we can get the number of elements in an array?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

The count() function is used to return the number of elements in an array.

Understanding of arrays and array related helper functions it's a knowledge that every junior developer should have.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the purpose of $_SESSION variable in PHP?How will you access the size of the uploaded file in PHP?