header functuon php code example Example: php redirect header("Location: http://example.com"); die();