Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick PHP question


Guest

Recommended Posts

I need to find a way to look through a string and do the following:

 

1. Find each occurance of "keyword"

 

2. After each occurance of "keyword", find the very next occurance of "\n"

 

3. Replace those particular occurances of "\n" with some other text

 

Any idea how to go about this?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...