Posted By

browncardigan on 02/08/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrianCoyDesign


get rid of that trailing slash


 / Published in: PHP
 

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

  1. if (substr($str, -1) == "/") { $str = substr($str, 0, strlen($str)-1); }

Report this snippet  

You need to login to post a comment.