PHP alt dize Penggantian

0 Cevap

I have a string like: $string = "/physics/mechanics/vectors/P-M-C (1).doc";

Böyle almak istiyorum:

"/ Physics/mechanics/vectors/1-P-M-C (1) doc.";

Özgün dize sadece P önce eklendi - "1" olduğunu unutmayın.

Is it possible in PHP? How the function in PHP should be used?

0 Cevap