Function __global->browser_matches

Definitions

sources/global3.php

  • See's if the current browser matches some special property code. Assumes users are keeping up on newish browsers (as defined in tut_browsers).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$code string No No required parameter android ios wysiwyg windows mac linux odd_os mobile ie gecko safari odd_browser chrome bot simplified_attachments_ui itunes N/A The property code
$comcode ?string No No Null N/A N/A Comcode that might be WYSIWYG edited; used to determine whether WYSIWYG may load when we'd prefer it to not do so (null: none)

Returns

  • Whether there is a match
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * See's if the current browser matches some special property code. Assumes users are keeping up on newish browsers (as defined in tut_browsers).
 *
 * @param  string $code The property code
 * @set android ios wysiwyg windows mac linux odd_os mobile ie gecko safari odd_browser chrome bot simplified_attachments_ui itunes
 * @param  ?string $comcode Comcode that might be WYSIWYG edited; used to determine whether WYSIWYG may load when we'd prefer it to not do so (null: none)
 * @return boolean Whether there is a match
 */

function browser_matches(string $code, ?string $comcode = null) : bool