HH\Lib\Str\is_empty

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

Returns whether the input is null or the empty string

namespace HH\Lib\Str;

function is_empty(
  ?string $string,
): bool;

Parameters

  • ?string $string