HH\Lib\Str\length

This API is part of the Hack Standard Library, not HHVM itself.

Returns the length of the given string, i

namespace HH\Lib\Str;

function length(
  string $string,
): int;

e. the number of bytes.

Parameters

  • string $string