Why does this not remove the example/
:
$url = "http://webserver/exmaple/subdomaine/";
$domaine="example"
$domaine= $domaine."/";
echo str_replace($domaine,"",$url);
Is there a better way to do so ?
Thanks!
Why does this not remove the example/
:
$url = "http://webserver/exmaple/subdomaine/";
$domaine="example"
$domaine= $domaine."/";
echo str_replace($domaine,"",$url);
Is there a better way to do so ?
Thanks!
$domaine = "example"; // Missing semicolon ...