I’m experimenting with something where explode() is failing so I want to try something else. If I have a string, how can I count the number of characters in it that are let’s say a comma as in ,
I’m experimenting with something where explode() is failing so I want to try something
Share
Try substr_count():