$host = getHttpHost(); echo $host; // Output: www.example.com
$host = getHttpHost(); echo $host; // Output: blog.example.comPackage library: This function is a native PHP function and does not require installation of any additional package or library.