Hmm, wouldn't a string character search function work in this case too ? I dunno but I can't find it, I know there's one that searches for a single character inside a string... and you'll just use the constant array as the string and the character as your variable number (must be converted to char number tough, number 1 is char 38, something like that)
Unless it's a native their's no reason to consider it.