33 of 110 menu

PHP Array Length

To count the array length in PHP, use the count function. See the example:

<?php $arr = ['one', 'two', 'three']; echo count($arr); ?>

Code execution result:

3

See Also

English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline