PHP How to Character Limit or Word Limit while Ignoring Spaces or HTML Tags?

Questions-M

New member
I have been able to setup character limits and word limits with substr() and a custom function, also I strip_tags and allow tags, but how would you write a function that skips spaces or at very least skip spaces, so it does not count a space as a character. Thank you!
 
Back
Top