0

  1. K

    php help (preg_match)

    I have a problem in PHP regarding preg_match/preg_match_all funtion. This is the sample script: <?php $u_agent = $_SERVER['HTTP_USER_AGENT']; if(preg_match('/MSIE/i', $u_agent)) $ub = 'MSIE'; $known = array('version', $ub, 'other'); $pattern = '#(?<browser>' . join('|', $known) . ')[/...
Top Bottom