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

Explain the casts allowed in PHP?

777


How to enable error reporting in php?

749


What is substr in php?

717


Explain me what is the goto statement useful for?

622


What is print_r?

662


What are getters and setters php?

746


How check variable is set or not in php?

622


Which is useful for method overloading?

834


What difference between require() and require_once()?

786


What software is required for php?

762


What type of comments are supported by PHP.

745


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

749


What is $_ env in php?

715


Where sessions stored in PHP?

723


How to get best php developer Experience in Php with Sugar CRM / VTiger.

4147