|
Posted by joboils on 05/23/07 05:32
On Tue, 22 May 2007 15:19:05 -0400, "Edward Z. Yang"
<edwardzyang@thewritingpot.com> wrote:
>-----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
Thank you, that looks like what I wanted. I'll be checking it out
later on this week, but does the ctype_aplha() identify spaces, too?
Navigation:
[Reply to this message]
|