HH\Lib\Str\length

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

This function is available as Str\length() in Facebook's www repository.

Returns the length of the given string, i

Description

namespace HH\Lib\Str;

function length(
  string $string,
): int;

e. the number of bytes.

Parameters

  • string $string