Yeah, please elaborate on what you mean. ischar to mean seems like you're wanting to know that it's a character (i.e. not a number of symbol -- isalplha handles that). But what you put as the warning doesn't seem to make sense -- "character's private"?

Also, keep in mind that $v1 is the result of the check. An is___ check will return $true or $false, which I doubt is what you're expecting in your example.

If you meant it's a single character,then $len() == 1 is just as easy as mentioned. If you mean something else entirely, please explain. A sample input and output for the example script would help us to understand what you mean.

Last edited by Riamus2; 03/12/09 03:54 PM.

Invision Support
#Invision on irc.irchighway.net