To find the length of an array in PHP, you can use either the count() or sizeof() function. These functions return the number of elements in an array.
Example code:
main.php273 chars8 lines
Both count() and sizeof() functions can be used interchangeably to find the length of an array in PHP.
gistlibby LogSnag