<?php preg_replace( string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, int &$count = null): string|array|null
<?php public function stringToErrorCode($baseString) { return \preg_replace('`[^a-z0-9_]`i', '_', \strtolower($baseString)); }
<?php return $string; } return \preg_replace(self::REGEX_COMPLEX_VARS, '', $string); }