Mobile_Detect::match
Some detection rules are relative (not standard), because of the diversity of devices, vendors and their conventions in representing the User-Agent or the HTTP headers.
This method will be used to check custom regexes against the User-Agent string.
Signature
public function match(
$regex,
[string
$userAgent = NULL] )
Parameters
$regex
—$userAgent
— string
Returns
- bool
Line | Task |
---|---|
1255+ | : search in the HTTP headers too. |