general / sizeof

Edit on Github

NAME

sizeof()  -  return the number of elements in an array, mapping, buffer
or string

SYNOPSIS

int sizeof( mixed var );

DESCRIPTION

Return the number of elements in an array, mapping,  string  or  buffer
'var'.  If 'var' is not an array, mapping, string, or buffer, then zero
(0) is returned.

SEE ALSO

allocate(3), allocate_mapping(3), strlen(3)