Ask Question Sign In Sign Up
Home
Sign In
Sign Up
  • Home
  • >
  • Technology
  • >
  • How to get length of an array in PHP ?
Books Business Design Economics Education Marketing Sports Technology
Category
Books
Business
Design
Economics
Education
Marketing
Sports
Technology

How to get length of an array in PHP ?

Member

cristobal

by cristobal , in category: Technology , 2 years ago

How to get length of an array in PHP ?

0 | 0
0
Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


Member

bailey_conroy

by bailey_conroy , 2 years ago

PHP count function is used to get the length or numbers of elements in an array

1
2
3
4
5
6
<?php
// initializing an array in PHP
$array=['a','b','c'];
// Outputs 3 
echo count($array);
?>
0 | 0
0

Related Threads:

What is the procedure for processing a flat file with fixed length layout?

How to remove duplicate values from a PHP Array?

How to get the IP address of the client/user in PHP?

How can you get web browser’s details using PHP?

How to get no of arguments passed to a PHP Function?

How to get number of days between two given dates using PHP ?

About us

  • Contact us
© 2023 Copyright: emediaworld.com

This Site is Created By mywebforum.com

Get Your Own Questions & Answers platform