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 download the files using PHP

1 Answers  


What are the 5 types of variables?

0 Answers  


What is use of count() function in php?

0 Answers  


What is final class and final method in php?

0 Answers  


What is string and its function?

0 Answers  


How do I update php?

0 Answers  


What does the unlink() function mean?

0 Answers  


How will you create a bi-lingual site (multiple languages) ?

3 Answers  


What is array filter in php?

0 Answers  


How do I use isdigit function?

0 Answers  


Can you extend a final defined class?

0 Answers  


How to create a text file in PHP?

0 Answers  


Categories