"; } public static function h(string|int $type = 1, string $title = '', array $params = []) { $paramsStr = self::createParams($params); return "$title"; } public static function a(string $link, array $params = []): string { $paramsStr = self::createParams($params); return ""; } /** * @param array $data * @return string */ public static function createParams(array $data = []): string { $paramsString = ""; foreach($data as $key => $param){ if(is_string($param)){ $paramsString .= $key . "='" . $param . "'"; } } return $paramsString; } }