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 (660)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 VB Script interview questions  VB Script Interview Questions (343)
 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
 
hi to all i am fresher in php and want to learn php and want a fresher job in php. how to total time i expend to learn php and what is freshers salary.   9
What are the advantages of not using any frameworks ? Sonata 1
What are the different functions in sorting an array?   2
Single choice objective PHP question...   1
Whether site will complete the execution of the script if Fatal error occurs ?   1
Which is the Best plateform for PHP? Net-Solution 7
How to make a file encrypt and decrypt? 3i-Infotech 4
Write a php code which could be used to generate random numbers between 1 - 100 and display them on the screen.   7
When you will get the error "Cannot add header information"?   2
equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }   2
How can we find the number of rows in a result set using PHP?   4
Design a class that should always return a single object ? NIIT 3
 
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