ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Scripts >> PHP
 
 


 

 
 PHP interview questions  PHP Interview Questions (658)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (174)
 VB Script interview questions  VB Script Interview Questions (342)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
Question
How can we know the count/number of elements of an array?
 Question Submitted By :: PHP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
count(array) function returns the total number of elements
of specified array.
 
Is This Answer Correct ?    19 Yes 4 No
Devendrarjadav
 
Answer
# 2
$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
Mahesh
 
 
 
Answer
# 3
you can get the no: of elements in the array through
count()
syntax:
count($arrayname);
 
Is This Answer Correct ?    7 Yes 1 No
Joseph George C
 

 
 
 
Other PHP Interview Questions
 
  Question Asked @ Answers
 
What is the difference between $message and $$message? eGrove 12
is anybody upload more than 100mb file using PHP upload script in ONLINE SERVER (using .htaccess file)? please give some idea...   1
recurring account in PayPal payment gateway? A1-Technology 1
How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP Wipro 6
how many types of inheritance is there in php? name there?   10
How can I know that a variable is a number or not using a JavaScript?   2
What's diffrence between Get() and Post() Function   7
How can I embed a java programme in PHP file and what changes have to be done in PHP.ini file? Sify 1
How can we send mail using JavaScript? dwise 13
How many ways I can redirect a PHP page? MicroSec 9
How do I add to the beginning of an array and find the number of elements in it? Rushmore-Consultancy 1
how to convert PHP code in to java code   4
 
For more PHP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com