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

Answers were Sorted based on User's Feedback



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

Answer / devendrarjadav

count(array) function returns the total number of elements
of specified array.

Is This Answer Correct ?    19 Yes 4 No

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

Answer / mahesh

$std=$mb->Get_Students();
then using
$cnt = count($std);
echo $cnt;
will display the total number of that array

Is This Answer Correct ?    8 Yes 2 No

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

Answer / 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

More PHP Interview Questions

What are the types of variables in php?

0 Answers  


Is it possible to extend the execution time of a php script?

0 Answers  


hi sir am a fresher just learning LAMP COURSE linux,apache,mysql and php .just i finished my M.C.A 2009 passed out ..can any one tell after i finish this course how much salary we expect in any php based company ? and also tell please how much salary we can demand as a fresher with my M.C.A qualification as a PHP fresher in a company ? how much we get atleast mininum as a PHP fresher in CHENNAI and Bangalore just send ur valuable suggestions to kiranpulsar2007@gmail.com please guide to me sir

2 Answers  


How can we submit a form without using submit buttons?

0 Answers  


What is the use of offset in mysql?

0 Answers  






Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

0 Answers  


What is encapsulation in oop php?

0 Answers  


What is get method in java?

0 Answers  


Which function would you use to read a line of data from a file in php?

0 Answers  


Why is PHP-MySQL frequently used for web (Portal) Development?

5 Answers   T3 Softwares, Wipro,


Suppose your zend engine supports the mode <? ?> Then how can you configure your php zend engine to support <?php ?> Mode ?

0 Answers  


What is uniqid php?

0 Answers  


Categories