HH\Lib\Str\is_empty

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

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

Returns whether the input is null or the empty string

Description

namespace HH\Lib\Str;

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

Parameters

  • ?string $string