PHP code snippet – How to count array? Subash Chandran 9th November 2021 Leave a Comment $array = ['x', 'y', 'z']; count($array); // output 3 size_of($array); // output 3 Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also How to get remainder in TypeScript? Snippets array count php, count array in php, count array in php test, count array php, count item array in php, php count array, php get array count Change font size A Decrease font size. A Reset font size. A Increase font size.