Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting a specific character before a certain point in a string.

Status
Not open for further replies.

dabsoft

Programmer
May 12, 2001
5
US
I need a function that will count how many instances of the specified character there are before a certain point in a string? How would I do this?
 
Uhg, I'm going to have to explain my whole problem. I need a function that will replace all spaces in a string with " AND " unless there is an odd number of quotation marks before the specific space and also after it. This might take some serious coding and I'm kind of new to PHP so I could use some help. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top