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 |
Why using the htaccess file
How can you retrieve a cookie value?
How can we enable error reporting in php?
what is the dirrence in PHP4 & PHP5 . ?
What is varchar mysql?
When a conditional statement is ended with an endif?
What is difference between action hook and filter hook?
What is difference between base_url and site_url?
Do you know when sessions ends?
Why and where do we use htaccess?
What are the advantages of php mysql?
Why are sessions used?