What is difference between count or sizeof function in php?



What is difference between count or sizeof function in php?..

Answer / Pushkar Srivastava

count() returns the number of elements in an array, while sizeof() is an older, deprecated function that also returns the number of elements. It's recommended to use count() instead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is difference between sql and php?

1 Answers  


What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?

1 Answers  


Which is better #define or enum?

1 Answers  


What is the difference between get & post ?

1 Answers  


Do loops php?

1 Answers  


How send email in php?

1 Answers  


What are the differences between require and include?

1 Answers  


What is http php?

1 Answers  


How to write in a file in php?

1 Answers  


How to change the principal password?

1 Answers  


What is the maximum size of a file that can be uploaded using PHP and how can we change this?

4 Answers  


How to set a value in session? How to remove data from a session?

1 Answers  


Categories