Skip to content

PHP code snippet – How to count array?

$array = ['x', 'y', 'z'];
count($array); // output 3
size_of($array); // output 3
See also  How to get remainder in TypeScript?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.