I have a string like:
$string = “/physics/mechanics/vectors/P-M-C (1).doc”;
I want to get like this:
“/physics/mechanics/vectors/1-P-M-C (1).doc”;
Please note that “1-” is added just before P in the original string.
Is it possible in PHP?
How the function in PHP should be used?
@fawad:Here’s a sample to get you started —