src/Support/Str.php
protected static function fromHex(string $hex): string
    {
        $data = '';

        // Convert hex to string.
        for ($i = 0; $i < \strlen($hex) - 1; $i += 2) {
            $data .= \chr(\hexdec($hex[$i].$hex[$i + 1]));
        }

        return $data;
    }
protected static function fromHex(string $hex): string
    {
        $data = '';

        // Convert hex to string.
        for ($i = 0; $i < \strlen($hex) - 1; $i += 2) {
            $data .= \chr(\hexdec($hex[$i].$hex[$i + 1]));
        }

        return $data;
    }
protected static function fromHex ( string $ hex ) : string { $ data = '' ; // Convert hex to string. for ( $ i = 0 ; $ i < \ strlen ( $ hex ) - 1 ; $ i += 2 ) { $ data .= \ chr ( \ hexdec ( $ hex [ $ i ] . $ hex [ $ i + 1 ] ) ) ; } return $ data ; }
Convert hex to string.

@param  string  $hex

@return string
Convert hex to string .