Hello everyone.
I have a String, and I want to be able to examin each character in it one at a time.
how do I do this? I know it in java but can't figure it out in php.
I have a great big string... and it contains html. I want to count all the characters that are between the tags. So.. I guess you just go through each character... determin if it's part of a tag, and if not increment the counter.
hmm... but how do read in one character at a time?
I've been trying to do it with the substr() function... and it's going to be terably inificient I'm sure...
does anyone know a good way to go about this in php?
thanks 🙂