RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1613 | Replies: 2
Reply
Join Date: May 2007
Posts: 41
Reputation: it2051229 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
it2051229 it2051229 is offline Offline
Light Poster

PHP detect space function

  #1  
Jul 30th, 2007
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..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: PHP detect space function

  #2  
Jul 30th, 2007
You will need to use regular expressions and preg_match() to do this.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: May 2007
Posts: 41
Reputation: it2051229 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
it2051229 it2051229 is offline Offline
Light Poster

Re: PHP detect space function

  #3  
Jul 30th, 2007
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:04 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC