Back to Browser class

Method isBrowser

public bool
isBrowser
(mixed $browser)
Determine if the given browser is the same as the current.
Parameters
  • string $browser The browser to check.
Returns
  • bool Is the given browser the same as the current?
Since
  • 1.7.0
Class: Browser
Project: Joomla

Method isBrowser - Source code

/**
 * Determine if the given browser is the same as the current.
 *
 * @param   string  $browser  The browser to check.
 *
 * @return  boolean  Is the given browser the same as the current?
 *
 * @since   1.7.0
 */
public function isBrowser($browser)
{
    return $this->browser === $browser;
}