Hello. I am working on something in my permanence system and I can't seem to remember how to find a string in another string in an array.
I have a TV object with changing channels and it logs a string with a number to a global array to set permanence. It needs to retrieve this when reloading the scene to keep the current "channel" on. Am I doing this the wrong way, or perhaps should I make an array with the value in it? I just don't want to have to search for individual strings.
Find a string in another string in an array
- Best Answerset by SnapCracklins
You can use String::find()
to find substrings in a string.