how to count array length in php 7.2 code example Example: php length of array <?php $arr = ["one", "two", "three", "four"]; echo count($arr); ?>