Posted By

colum on 02/11/10


Tagged


Versions (?)

Remove all hash from a url


 / Published in: PHP
 

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

  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  

You need to login to post a comment.