localhost Posted July 27, 2006 Share Posted July 27, 2006 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. Link to comment https://forums.phpfreaks.com/topic/15765-use-str_replace/ Share on other sites More sharing options...
rab Posted July 27, 2006 Share Posted July 27, 2006 [code]include "config.php";$site_url = str_replace("http://", "", $SITE_URL);[/code] Link to comment https://forums.phpfreaks.com/topic/15765-use-str_replace/#findComment-64452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.