Answers for "get the length of an array in php"

PHP
30

php length of array

<?php
	$arr = ["one", "two", "three", "four"];
	echo count($arr);
  ?>
Posted by: Guest on December-29-2019
1

array length php

// https://www.php.net/manual/en/function.count.php
$a = array(1,3,5);
echo count($a);
// -> 3
Posted by: Guest on March-19-2021

Code answers related to "get the length of an array in php"

Browse Popular Code Answers by Language