site_url([$uri = ''[, $protocol = NULL]])
Parameters:
$uri (string) – URI string
$protocol (string) – Protocol, e.g. ‘http’ or ‘https’ Returns:
Site URL Return type:
string
Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the URL, as will any URI segments you pass to the function, plus the url_suffix as set in your config file.
You are encouraged to use this function a