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

How to set session.gc_divisor properly?

1 Answers  


What are the characteristics of php variables?

1 Answers  


What are the file upload settings in configuration file?

1 Answers  


How is it possible to remove escape characters from a string?

1 Answers  


How can we register the variables into a Session?

7 Answers   HCL, Star Computers, Trikon Networks,


What is php ci?

1 Answers  


What are the advantages of using php?

1 Answers  


How many keywords are there in php?

1 Answers  


What is member function?

1 Answers  


Explain the importance of the function htmlentities.

1 Answers  


What is php and features of php?

1 Answers  


Can anyone explain about join?

3 Answers  


Categories