php replace first occurrence of string from 0th position
15921
Using str_replace so that it only acts on the first match?
63154
Replacing the nth instance of a regex match in Javascript
44134
Creating default object from empty value in PHP?
110874
(php) regexto remove comments but ignore occurances within strings
85777
How do I replace the last occurrence of a character in a string using sed?
6441
How to Truncate a string in PHP to the word closest to a certain number of characters?
139560
How to remove leading and trailing zeros in a string? Python
138810
Replace last part of string
107014
Replacing multiple characters in a string, the fastest way?
37436
In PHP, 0 (int, zero) is equal to "first" or "last" (strings)?
82434
Remove useless zero digits from decimals in PHP
112581
Replacing pattern after nth match is found on each line?
8272
Formatting a number with leading zeros in PHP
28187
How to replace the first occurence in an expression instead of replacing all?
96252
JavaScript: replace last occurrence of text in a string
89181
JavaScript .replace only replaces first Match
117035
How do you pull first 100 characters of a string in PHP