If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

how to replace chunks of text

Started by lamnzxzfd, 12-28-2011, 01:31:54

Previous topic - Next topic

lamnzxzfdTopic starter

It's useful to replace text within strings too. For example, it can be handy for manipulating strings containing data, or when formatting text for displaying in a Web page.PHP gives you a couple of useful functions for replacing text in a string:
str_replace() searches for one string of text and replaces it with another.
substr_replace() replaces text at a specified position within a string.

However, your help is needed on how to replace chunks of text with these two fubctions, thanks.
  •  



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...