size()
Determines the size/length of numbers, strings, arrays and countable objects
Parameters
Name | Type | Default |
---|---|---|
$value * | mixed |
– |
Return type
int
Examples
Number of elements in array:
Length of string:
Value of number
Number of pages