一个URL参数字符串的一部分,为什么这不能删除example/
:如何删除PHP
$url = "http://webserver/exmaple/subdomaine/";
$domaine="example"
$domaine= $domaine."/";
echo str_replace($domaine,"",$url);
有没有更好的方式来做到这一点?
谢谢!
一个URL参数字符串的一部分,为什么这不能删除example/
:如何删除PHP
$url = "http://webserver/exmaple/subdomaine/";
$domaine="example"
$domaine= $domaine."/";
echo str_replace($domaine,"",$url);
有没有更好的方式来做到这一点?
谢谢!
$domaine = "example"; // Missing semicolon ...
检查拼写:
exmaple
== example
〔实施例将是一个树,这是在过去枫,但现在是另一种类型的树如橡木或红豆杉。
在这里做了一个错误
$domaine="example"
通过
$domaine="example";
对不起取代它,但我想在结束了:'HTTP:// Web服务器/ subdomaine /' – user3350731
什么关于错字? –
谢谢!我修好了:) 谢谢大家 – user3350731