look,
i have a variable that contain dynamic value,
for example i have $url,
sometimes, this $url contain a value : http://mysite.com/index.php
sometimes, this $url contain a value : http://mysite.com/index.php/login/
i just want to replace "index.php" and "index.php/"
so the result like below:
http://mysite.com/
http://mysite.com/login/
i have just used str_replace("index.php", "",$url) but it doesnt solve my problem
