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

How to join multiple strings stored in an array into a single string?

0 Answers  


What is the difference between include and include_once ? Which is one is good in terms of performance ?

2 Answers   Dest,


Is php 5.6 secure?

0 Answers  


What types of loops exist in php?

0 Answers  


What are the main error types in php and how do they differ?

0 Answers  






Is php an array?

0 Answers  


What are the variables in php?

0 Answers  


What is explode() in php?

0 Answers  


What is helper function?

0 Answers  


Is php still used?

0 Answers  


Write logic to print Floyd's triangle in PHP?

0 Answers  


How do I find out the number of parameters passed into function9?

0 Answers  


Categories