Answers for "how to write array.length in php"

PHP
30

php length of array

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

array size php

<?php

 $cars=array("Volvo","BMW","Toyota");
echo sizeof($cars);
?>
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language