PHP-gurus: I need your help!
PHP-gurus: I need your help!
Out of context: Reply #13
- Started
- Last post
- 22 Responses
- mike0
you would need to do a regular expression match... or, if you know that all prefixes are a certain length from the begining of the file name then you could substr the string and replace the result with nothing...
$sName = str_replace(substr($sStr, 0, 4), "", $sStr);
that should replace the first four characters of the file name wil nothing...
0 is the statrt position and 4 is the length...
http://www.php.net/manual/en/fun…
can you show me an example of what the string looks like and what you are trying to replace in each one?