PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I found this could but dont really understand it. Will this search a string and then put part of it in a variable? From what your searching for till another part or does anyone know of a way to do that?... Say this was a string "hello 5there php5 people". If i wanted to search from the first instance of 5 to the second. Thanks for your time and any ideas.
That function gives you the earliest offset of a character found in $needleAsString.
If the needle is :!, then it'll find the location of the next colon, exclamation mark, and comma, and return the earliest one.
Which kinda helps you with your problem, but there's a much simpler way.
so do i need to go threw all of them like that? or could i run a foreach?
I'm trying to use it in this code to add an id under each image all of the ids are in one text file seperated by the word id at each one.