#mime->is(pattern: string) → bool
text/html、text/*、または / に一致する場合に true になります。
| パラメーター | 受け取るもの |
|---|---|
pattern 必須 | string |
例
<let name="x" type="mime" value="'text/html; charset=utf-8'" />
<echo>{ $x->is('text/*') }</echo>$x: mime = 'text/html; charset=utf-8'
echo $x->is('text/*')