<?php $arr = ["1", "2", "3"]; echo count($arr); ?>
To get the length of an array in PHP you can use its inbuild function count() which takes array as a parameter and returns array length.
0 Comments