问题,如果我们说:在PHP中的字符串(不添加两个字符串正确)
$termstringDomain1 = "something";
$url = "somethingelse";
$url = 'http://' . $termstringDomain1 . '/' . $url;
结果,如果给我的是:中http:///somethingelse
代替http://something/somethingelse
所以基本上是忽略$termstringDomain1
任何想法为什么?
这运行正常,你的问题存在于你没有粘贴的某些代码的其他地方。 – 2010-01-28 20:09:39
但它怎么会在别的地方,我正在做的是上面然后(echo $ url) – user220755 2010-01-28 20:11:10
是真的你的$ termstringDomain1?也许你的实际变量值是borked – davidosomething 2010-01-28 20:11:16