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

Is laravel easy to learn?

0 Answers  


hello.. i am b.tech 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.

5 Answers  


Why php is widely used?

0 Answers  


What is polymorphism in php?

0 Answers  


What is the function mysql_pconnect() useful for?

0 Answers  






How to define a function with any number of arguments?

0 Answers  


What is the w3c?

0 Answers  


What is session cookies php?

0 Answers  


Which is better php or nodejs?

0 Answers  


Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?

6 Answers  


What is multidimensional array in php?

0 Answers  


What is php and its features?

0 Answers  


Categories