// handle URL
if (preg_match("/^https?:\/\//", $destination))
{
header("Location: " . $destination);
}
I was wondering why the string inside preg_match has extra /^ and / characters at the start and end of the string. I know that the "/" "/"s are used to escape the slashes, but I just couldn't find the use for the packaging escapes.