Jump to content

Archived

This topic is now archived and is closed to further replies.

localhost

Use str_replace

Recommended Posts

How would I use str_replace with this:

$SITE_URL = "http://system.dotomega.com";

In another file I included config.php which has that variable.

I want to use str_replace to remove http:// and replace it with nothing.

Share this post


Link to post
Share on other sites
[code]
include "config.php";

$site_url = str_replace("http://", "", $SITE_URL);
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.