Hm. I would probably use a regular expression here...
if(!preg_match('/^[\d]+-[\d]+$/', $uca)) {
// variable doesn't match scheme
} else {
// variable does match scheme
}
EDIT: I see Installer sneaked a post in before I did. Out of curiosity, I did some benchmarking, and found that there is only minimal speed difference.