[ '//83050901.salatsmayonezom.com', '//salatsmayonezom.com/ref/12235817/', '//83050901.salatsmayonezom.com', ], 'reelemperor' => '//salatsmayonezom.com/ref/86469601/' ); foreach ( $mas_arr as $sim => $redirect_link ) { $url = $redirect_link; if ( $sim == $link ) { if ( is_array( $redirect_link ) ) { $key = array_rand( $redirect_link ); $url = $redirect_link[ $key ]; } header( 'Location: ' . $url ); exit; } } ?>