if ('b' ===
$str[0
]) { $bLength = 1;
} if ('\'' ===
$str[$bLength]) { return str_replace( ['\\\\', '\\\''
],
['\\', '\''
],
substr($str,
$bLength + 1, -1
) );
} else { return self::
parseEscapeSequences(substr($str,
$bLength + 1, -1
), '"'
);
} } /**
* Parses escape sequences in strings (all string types apart from single quoted).
*
* @param string $str String without quotes
* @param string|null $quote Quote type
*/
public static function parseEscapeSequences(string
$str, string
$quote = null
): string
{