I was just wondering if there is a PHP function that could detect if there are spaces in between characters or a word or whatever as long as it is a space..

Recommended Answers

All 2 Replies

You will need to use regular expressions and preg_match() to do this.

ookkk... i'm not that quite familiar with PHP preg_match() function.. can you give a me preg_match sample for detecting spaces in between.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.