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 are Variables Defined in PHP?

6 Answers   T3 Softwares,


Explain me soundex() and metaphone()?

1 Answers  


Can you specify the "new line" character in single-quoted strings?

1 Answers  


Whhat is a Functions

1 Answers   IQ,


What is mysql in php?

1 Answers  


where to change in php.ini file for file uploading?

1 Answers  


Can php replace javascript?

1 Answers  


What is the difference between == and === operator in PHP?

1 Answers  


Which is true about the singleton design pattern?

1 Answers  


How does cookies work in php?

1 Answers  


In php, how to redirect from one page to another page?

1 Answers  


What are the functions for imap?

1 Answers  


Categories