preg_match problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

How can I check the string value using preg_match()?

The name inputted should have exactly one comma (,). If 0, 2, or more commas are encountered, return FALSE,

Sample:

Davis, Nathan Ventura = True
Davis, Nathan, Ventura = False
Davis Nathan Ventura = False

Your help is appreciated.

Raul  


 
LearnCareGo missions mobilization for local churches

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux