How to get total number of elements used in array?



How to get total number of elements used in array?..

Answer / ch mounika

list_a = [1,2,3,4,5]

length_of_list = len(list_a)

print(length_of_list)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

explain the changes in php version

3 Answers  


What is php how it works?

0 Answers  


How easy is php?

0 Answers  


How to convert a character to an ascii value?

0 Answers  


How can I retrieve values from one database server and store them in other database server using PHP?

1 Answers  


Is php 7 backwards compatible?

0 Answers  


How to use http headers inside php?

0 Answers  


Tell us how can we display the output directly to the browser?

0 Answers  


What is htaccess? Why do we use this and where?

0 Answers  


What are access specifiers?

0 Answers  


Difference among echo, print and printf.

1 Answers  


What is the function func_num_args() used for?

0 Answers  


Categories