Remove all hash from a url


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $str = "http://devolf.com/Dashboard/#/p/user";
  2. $f = explode('/',$str);
  3. for($i = 0; $i<count($f);$i++){
  4. if($f[$i] == "#") break;
  5. echo $f[$i]."/";
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.