suffixSwap function
| From: | Theodore Jones | Date: | Fri, 06 Oct 2000 01:22:09 +0000 |
| Subject: | suffixSwap function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18805@lists.php.net to get a copy of this message | ||
I'm looking for a function that can take a "$fileName" variable such as
something.gif,
and parse out the '.gif" ending and replace it on the return with the second
passed variable I would pass my "suffixSwap" function
suffixSwap($fileName, <suffix to swap in, i.e. ".mpg">)
so that your original "something.gif" becomes "something.mpg"...?
~ Theo