How can we know the count/number of elements of an array?

Answer Posted / joseph george c

you can get the no: of elements in the array through
count()
syntax:
count($arrayname);

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get a random value from a php array?

721


How to access a specific character in a string using php?

722


What is difference between session_unset and session_destroy?

711


What does the unset() function mean?

783


What does mysqli_query return?

688


What would occur if a fatal error was thrown in your php program?

710


Where are the persistent cookies stored on your computer?

764


What is the use of the function htmlentities?

810


What is difference between required and require_once in php?

780


How to make a class in php?

704


What is call by reference in php?

727


Write the statements that are used to connect php with mysql

707


Does php class need constructor?

693


What are php loops?

696


What is the difference between md5(), crc32() and sha1() crypto on php?

823