Answers for "measuring 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
3

php array lenght

<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>
Posted by: Guest on July-28-2020

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

Browse Popular Code Answers by Language