Answers for "function to get the size of array php"

PHP
30

php length of array

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

php array size

echo count($my_array);
echo sizeof($my_array);    // alias
Posted by: Guest on April-21-2021

Code answers related to "function to get the size of array php"

Browse Popular Code Answers by Language