Php code question: How to remove one string from within another string?

Quick question.

Lets say $theBigString = “777777777vvvvvv88wwwwwwwcccc8822”

and $theSmallerString = “8wwwwwwwcccc8”

How could I subtract $theSmallerString from $theBigString to create a $newString = “777777777vvvvvv8822” (removing the smaller from the bigger)

Thanks for the help.

Check out [fphp]str_replace/fphp. :wink: