You are here: Re: how to identify Letter v Number in string « PHP Programming Language « IT news, forums, messages
Re: how to identify Letter v Number in string

Posted by Edward Z. Yang on 05/22/07 19:19

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

joboils@hotmail.com wrote:
> I'm at a pretty early stage of learning php and I'm looking to be able
> to examine a string and tell which each character in that string is -
> a letter or a number. I've tried php.net but I'm either asking the
> wrong questions or I don't understand the answers.
> Any help gratefully received.

ctype_alpha($text); // alphabetic within current locale
ctype_digit($num); // digits 0-9

- --
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <htmlpurifier.org> Anti-XSS HTML Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGU0IpqTO+fYacSNoRAmhWAKCCHotagBG4HHOShTm+zN6CkzxINACfYGKW
2RqstIrlopvptQs00pEsT3k=
=08y1
-----END PGP SIGNATURE-----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация