HH\Lib\Regex\to_string

Requires the Hack Standard Library to be installed.

Renders a Regex Pattern to a string

namespace HH\Lib\Regex;

function to_string<T as HH\Lib\Regex\Match>(
    Pattern<T> $pattern,
): string;

Parameters

  • Pattern<T> $pattern