get rid of that trailing slash


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



Copy this code and paste it in your HTML
  1. if (substr($str, -1) == "/") { $str = substr($str, 0, strlen($str)-1); }

URL: http://bettesmidler.com/code/2009-10-29.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.