Jump to content

finding characters in a string


robcrozier

Recommended Posts

hi, what I'm trying to do is read a string until i come across a certain character and then chop the rest of the string off so i am only left with the first half up to the character that i searched for. Another thing though, i may need to search for the second or third occurrence of this character before truncating the string. Can this be done too?

 

cheers!

Link to comment
https://forums.phpfreaks.com/topic/41938-finding-characters-in-a-string/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.