Topic: Count number of commas in string
How can I count the number of times a comma appears in a string such as this?
A,B,C,D
It should return "3"
Mobdro
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → Count number of commas in string
How can I count the number of times a comma appears in a string such as this?
A,B,C,D
It should return "3"
Mobdro
Please try this string:
echo substr_count('A,B,C,D', ',');
Please try this string:
echo substr_count('A,B,C,D', ',');
I just tray that and It's not working..
MyAccountAccess Login
This works really well for us, thank you!
https://www.dunkinrunsonyou.run/
CutePHP Forums → Problem Solving / Help & Support → Count number of commas in string
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.