- var_dump: documentation ( source)
- strstr: documentation ( source)
<?php
$redirectUrl = "http://google.com";
var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));
$redirectUrl = "http://3v4l.org";
var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));
$redirectUrl = "http://google.com/3val.org";
var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));