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 |
What are new features in php 7?
What is the difference between mysql_fetch_object and mysql_fetch_array?
what are the current or latest versions of LAMP ? Linux, Apache, MySql, PHP
Tell me can the value of a constant change during the script's execution?
Which function can be used to delete a file?
Does https prevent csrf?
Is php good for career?
What is the purpose of destructor ?
What is rtrim php?
What is the difference between echo and print statement?
11 Answers Rushmore Consultancy,
Is false empty php?
Tell me what is htaccess?