http://www.xyz.com/index.php/toast
Can I easily strip the "toast" variable from this URL without using a "?". If not, is there a way to setup the server to use this format:
http://www.xyz.com/?toast
Right now, the above format returns an error since I'm not putting in the "index.php".
Thanks.
$str = "http://www.xyz.com/index.php/toast"; $toast = str_replace("/","",substr(strrchr($str, "/"),0));