array('movies', 'videos', 'vids', 'movs', 'tube', 'clip'), 'url' => 'http://www.bravoteens.com/movies.shtml' ) ); foreach ( $aData as $aRec ) { foreach ( $aRec['word'] as $sWord ) { if ( strstr($sReferer, $sWord) ) { header('Location: '.$aRec['url']); exit(0); } } } header('Location: '.$sDefUrl); exit(0); ?>