How to get total number of elements used in array?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between php4 and php5.

546


How many different types of messages available in php?

541


What is the difference between htmlentities and htmlspecialchars in php?

473


Can a super () and this () keywords be in same constructor?

480


what is CURL?

579






What are advantages of .htaccess?

525


What difference between require() and require_once()?

548


Tell me how can you pass a variable by reference?

503


What is the function of trim?

495


Which php framework is in demand?

449


Which is not a file-related function in php?

603


How does api connect to database?

552


Does php need html?

529


What is array function in javascript?

507


What is the use of trim in php?

520