Jump to content

Obtain site url


webref.eu

Recommended Posts

  • 4 weeks later...

$rest = substr("abcdef", 2, -1);  // returns "cde"

So.... try...

$domain = substr("$domain", 7, 0);  // 

 

The "" May not be right because it's a variable so you might have to change it to '' or none at all depending on its use but give that a shot.

 

 

http://us3.php.net/manual/en/function.substr.php

Link to comment
https://forums.phpfreaks.com/topic/136831-obtain-site-url/#findComment-731819
Share on other sites

Archived

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

×
×
  • Create New...

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.