← All built-ins / sizeof()
sizeof()
sizeof(mixed $v): int
Parameters
| Name | Type | Description |
|---|---|---|
| $v | array|string | array or string |
Return value
Same as count().
Example
echo sizeof([1, 2, 3, 4]);
4
| Name | Type | Description |
|---|---|---|
| $v | array|string | array or string |
Same as count().
echo sizeof([1, 2, 3, 4]);
4