Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Wants to make a check for pure numeric and pure alphanumeric words.
Old 03-19-2010, 09:34 AM Wants to make a check for pure numeric and pure alphanumeric words.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Hi,

I want to make a check for pure numeric and pure alphanumeric check for my php script.

I want to check pure numeric or alpha numeric.

e.g.

!$@%#^#^&#
123243242

not

24 hours ambulance

or

Sam & co.

Please help.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-19-2010, 10:03 AM Re: Wants to make a check for pure numeric and pure alphanumeric words.
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
ctype_alpha() and ctype_digit() will be helpful for you - There are several ctype_*** functions available.

http://us.php.net/manual/en/ref.ctype.php
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 03-20-2010, 12:20 AM Re: Wants to make a check for pure numeric and pure alphanumeric words.
Junior Talker

Posts: 2
Name: Sumit Joshi
Trades: 0
HI,

There are two functions which can help you to identify whether the entered value is pure numeric or alphabet.
1. Pure Numeric
isNumeric($value)
2. Pure Alphabet
isAlpha($value)

Both the functions will return bolean value.

That's it.
joshisumitnet is offline
Reply With Quote
View Public Profile
 
Old 03-20-2010, 06:25 AM Re: Wants to make a check for pure numeric and pure alphanumeric words.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Quote:
Originally Posted by joshisumitnet View Post
HI,

There are two functions which can help you to identify whether the entered value is pure numeric or alphabet.
1. Pure Numeric
isNumeric($value)
2. Pure Alphabet
isAlpha($value)

Both the functions will return bolean value.

That's it.
Thanks joshisumitnet;

Thanks for your help.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Wants to make a check for pure numeric and pure alphanumeric words.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13651 seconds with 12 queries