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

Make a "dynamic drop down list" with using only PHP,HTML and MySQL..

2 Answers  


Tell me how to find current date and time?

0 Answers  


my english is not too good then what we apply for a php programer post

0 Answers  


What is PEAR?

1 Answers  


How many php functions are there?

0 Answers  


how to change the div background color on every refresh..guys can u help me out.

3 Answers  


What is the use of preg_match in php?

0 Answers  


How to upload file in php?

0 Answers  


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

0 Answers  


How can we extract string 'techinterviews.com' from a string 'http://www.techinterviews.com' using regular expression in PHP?

4 Answers  


Explain soundex() and metaphone().

0 Answers  


What is return value in php?

0 Answers  


Categories