Description Usage Arguments Details Value
base_name()
get base directory name of url. In other words,
extracts protocal (http or https) and domain name from url it It works
similar to but a little different from basename().
1 |
url |
character. |
Although www.foo.com/bar must actually be www.foo.com/bar/index.html, but it's also possible that bar
is a file under domain root directory. So base_name()
has to return www.foo.com
character. with tailing '/'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.