how to replace chunks of text

Author Topic: how to replace chunks of text  (Read 1805 times)

Offline lamnzxzfdTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 16
  • Karma: 0
how to replace chunks of text
« on: 12-28-2011, 01:31:54 »
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.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1183 Views
Last post 09-06-2011, 03:41:48
by Walalayo
0 Replies
1954 Views
Last post 09-06-2011, 03:44:27
by Walalayo
10 Replies
6859 Views
Last post 08-22-2016, 05:29:12
by TomClarke
4 Replies
3543 Views
Last post 10-17-2013, 05:56:34
by seo-webservices
2 Replies
1235 Views
Last post 03-23-2012, 00:54:26
by joyanu