How can we know the count/number of elements of an array?
Answers were Sorted based on User's Feedback
Answer / devendrarjadav
count(array) function returns the total number of elements
of specified array.
Is This Answer Correct ? | 19 Yes | 4 No |
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 |
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 |
Explain me what are the main error types in php and how do they differ?
What are the differences between GET and POST methods in form submitting?
How is php different from other languages?
What is difference between put and post method in http?
Write a program to find no of days between two dates in php?
How do you put a space in html?
How do you pass a variable by value in php?
where to change in php.ini file for file uploading?
Do you know what is the differences between $a != $B and $a !== $B?
In php, how to redirect from one page to another page?
What is session in php w3schools?
What are the encryption techniques in php?