preg_replace



PHP replace only first occurrence of a string match.

How to replace only the first occurrence of a string in php.

(18 votes, average: 5.00 out of 5)
04.12.09