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

Does php 7 support mysql?

0 Answers  


Tell me what is the use of "ksort" in php?

0 Answers  


What is overloading and overriding in oop?

0 Answers  


Differences between get, post and request methods ?

0 Answers  


What is the main difference between asp net and php?

0 Answers  


AentteQ Software Technologies Q: what are benifits of using LAMP..?

5 Answers  


How do you pass a variable by value in php?

0 Answers  


Code to upload a file in PHP?

0 Answers  


Explain about the connective abilities of the PHP?

0 Answers  


What is array function in javascript?

0 Answers  


hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?

2 Answers  


Is key in array php?

0 Answers  


Categories