Return to Snippet

Revision: 23725
at February 18, 2010 11:42 by colum


Updated Code
$str = "http://devolf.com/Dashboard/#/p/user";
$f = explode('/',$str);
for($i = 0; $i<count($f);$i++){
	if($f[$i] == "#") break;
	echo $f[$i]."/";
}

Revision: 23724
at February 11, 2010 19:30 by colum


Initial Code
$str = "http://.devolf.com/Dashboard/#/p/user";
$f = explode('/',$str);
for($i = 0; $i<count($f);$i++){
	if($f[$i] == "#") break;
	echo $f[$i]."/";
}

Initial URL

                                

Initial Description
Will return "http://devolf.com/Dashboard/"

Initial Title
Remove all hash from a url

Initial Tags

                                

Initial Language
PHP