Jump to content

Replace (number of occurances) and ignorecase


ze1d

Recommended Posts

Hi all,I'm using preg_replace function to replace a part of string with another in my whole string for the first 2 occurances.. but this function is not working if my string was like this:$string = "SEARCH the web";I mean it dosen't ignore case .. so that it will not change the word "SEARCH" if i used "search" to replace it..is there anyway to do this??Thanks,zeid

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...