note 38673 deleted from class.dir by nlopess

From: Date: Fri, 02 Jan 2004 15:23:29 +0000
Subject: note 38673 deleted from class.dir by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62788@lists.php.net to get a copy of this message
Note Submitter: jukkissh@hotmail.com ---- If you are worried about trailing slashes etc try these functions: function add_trailing ($strString, $strTrailchar) { if (substr($strString, -1) != $strTrailchar) { $strString .= $strTrailchar; } return ($strString); } // add_trailing function drop_trailing ($strString, $strTrail) { if (substr($strString, -1) == $strTrailchar) { $strString = substr($strString, 0, -1); } return ($strString); } // drop_trailing You can use them always, they always add/drop the specified trailing str if necessary.

« previous php.notes (#62788) next »