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

Explain me what are the main error types in php and how do they differ?

0 Answers  


What are the differences between GET and POST methods in form submitting?

0 Answers  


How is php different from other languages?

0 Answers  


What is difference between put and post method in http?

0 Answers  


Write a program to find no of days between two dates in php?

0 Answers  


How do you put a space in html?

0 Answers  


How do you pass a variable by value in php?

0 Answers  


where to change in php.ini file for file uploading?

1 Answers  


Do you know what is the differences between $a != $B and $a !== $B?

0 Answers  


In php, how to redirect from one page to another page?

0 Answers  


What is session in php w3schools?

0 Answers  


What are the encryption techniques in php?

0 Answers  


Categories