<?php echo get_site_url(); ?> Results: http://www.example.com
$url = site_url(); echo $url;
global $wp; echo home_url( $wp->request )