Skip to content

Collection of Helpful Guides & Tutorials!

Collection of Helpful Guides & Tutorials!
Menu
  • Home
  • C#
    • Tutorials
    • C# Projects
    • Q & A
  • HTML5
  • CSS3
  • PHP
    • Tutorials
    • Q & A
  • SQL
  • JavaScript
    • Tutorials
    • Q & A
  • jQuery
    • Tutorials
    • Q & A
  • Bootstrap
  • Guides
  • Tools
December 20, 2015
HomePHP QuestionsHow to Get Array Length in PHP

How to Get Array Length in PHP

By Krishnaa PHP Questions  0 Comments

To get array length in PHP, we make use of Count function.  Sample code is given below.

<?php

$array = array("Robert", "Rony", "Peter", "Sam");

echo count($array);

?>

 

 
         

You May Also Like:

How to Add Key & Value in Array in PHP Arrays in PHP Associative Arrays in PHP How to Find Middle Element in Array in Javascript how to append one array to another array in javascriptHow to Append One Array to Another Array in Javascript

Recent Posts

  • How to Insert Dash After Every Character in Input in Javascript
  • How to Insert Dash After Every 2nd Character in Input in Javascript
  • How to Insert Dash After Every 3rd character in Input in Javascript
  • How to Add Space After Every 4th Character in Input in Javascript
  • How to Insert Space After Every 4th Character in Input in Javascript
Privacy Policy
Collection of Helpful Guides & Tutorials! Copyright © 2023.
Back to Top ↑