isalpha
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | isalpha [2006/07/11 04:57] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: isalpha.txt, | ||
| + | ======Synopsis: | ||
| + | $__isalpha__(< | ||
| + | $__isdigit__(< | ||
| + | |||
| + | ======Technical: | ||
| + | These function test whether the first character in the given string is | ||
| + | an alphabetical character or a digit. | ||
| + | tested. | ||
| + | |||
| + | ======Practical: | ||
| + | These functions are useful for testing an input string to see whether it | ||
| + | is a number or a text string. | ||
| + | would be suitable input for $[[iptoname]]() or $[[nametoip]](). | ||
| + | that only the first character is tested, so this isn't a reliable way | ||
| + | to see if the entire string is a number. | ||
| + | |||
| + | ======Returns: | ||
| + | " | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | $isalpha(hello) | ||
| + | $isalpha(2hello) | ||
| + | $isdigit(123) | ||
| + | $isdigit(2abc) | ||
| + | $isdigit(a123) | ||
| + | </ | ||
| + | |||
isalpha.txt · Last modified: 2006/07/11 04:57 by 127.0.0.1
