HH\Lib\Str\is_empty

Meta Engineer?

This is available as Str\is_empty in the www repository.

Returns true if $string is null or the empty string

namespace HH\Lib\Str;

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

Returns false otherwise.

Guide

Parameters

  • ?string $string

Returns

  • bool