How can we know the count/number of elements of an array?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I increase my website session?

542


Tell me what is use of in_array() function in php?

575


What are the characteristics of php variables?

527


What is the difference between session_unregister() and session_unset()?

581


What is $_ env in php?

549






How be the result set of mysql handled in php?

591


Do you know how can we check the value of a given variable is a number?

523


What is the use of "enctype" attribute in a html form?

528


Is php pass by reference or value?

540


Describe session in php.

536


If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

492


What are psrs? Choose 1 and briefly describe it?

952


What is local variable in php?

509


What is query string php?

543


How to get the position of the character in a string in php?

628