getAgentString example


        }

        return false;
    }

    /** * Outputs the original Agent String when cast as a string. */
    public function __toString(): string
    {
        return $this->getAgentString();
    }
}
<?= $request->isCLI() ? 'yes' : 'no' ?></td> </tr> <tr> <td>Is Secure Request?</td> <td><?= $request->isSecure() ? 'yes' : 'no' ?></td> </tr> <tr> <td>User Agent</td> <td><?= esc($request->getUserAgent()->getAgentString()) ?></td> </tr> </tbody> </table> <?php $empty = true; ?> <?php foreach (['_GET', '_POST', '_COOKIE'] as $var) : ?> <?php                     if (empty($GLOBALS[$var]) || ! is_array($GLOBALS[$var])) {
                        continue;
                    }
Home | Imprint | This part of the site doesn't use cookies.