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 the types of variables in php?
Is it possible to extend the execution time of a php script?
hi sir am a fresher just learning LAMP COURSE linux,apache,mysql and php .just i finished my M.C.A 2009 passed out ..can any one tell after i finish this course how much salary we expect in any php based company ? and also tell please how much salary we can demand as a fresher with my M.C.A qualification as a PHP fresher in a company ? how much we get atleast mininum as a PHP fresher in CHENNAI and Bangalore just send ur valuable suggestions to kiranpulsar2007@gmail.com please guide to me sir
How can we submit a form without using submit buttons?
What is the use of offset in mysql?
Tell me how to strip whitespace (or other characters) from the beginning and end of a string?
What is encapsulation in oop php?
What is get method in java?
Which function would you use to read a line of data from a file in php?
Why is PHP-MySQL frequently used for web (Portal) Development?
5 Answers T3 Softwares, Wipro,
Suppose your zend engine supports the mode <? ?> Then how can you configure your php zend engine to support <?php ?> Mode ?
What is uniqid php?