Hyvor Developer
  Home   Download   Copy
Code
<?php
$fruits = ['Apple', 'Banana', 'Orange', 'Mango'];
echo count($fruits); // will return 4

echo '<br>';

$age = array(
	'Joe' => 22,
	'Adam' => 25,
	'David' => 30
);
echo count($age); // will return 3;
Result