Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Visitor
accepts
Visitor::accepts PHP Method
Visitor Interface Documentation
Exibir arquivo
Open project: getkirby/toolkit
accepts()
public
static
method
Returns whether a specified MIME type is accepted by the visitor's browser
public
static
accepts
(
string
$type
) :
boolean
$type
string
MIME type like "text/html"
return
boolean
public static function accepts($type) { return static::acceptance($type) > 0; }
Visitor
acceptance
acceptedLanguage
acceptedLanguageCode
accepts
banned
ip
referer
referrer
ua
userAgent