Return the number of elements in an array:
The sizeof() function returns the number of elements in an array.
The sizeof() function is an alias of the count() function.
| Parameter | Description |
|---|---|
| array | Required. Specifies the array |
| mode | Optional. Specifies the mode. Possible values:
|
| Return Value: | Returns the number of elements in the array |
|---|---|
| PHP Version: | 4+ |
PHP Array Reference
Your message has been sent to W3Schools.