- strtoupper: documentation ( source)
- strtolower: documentation ( source)
- ucfirst: documentation ( source)
<?php
function matchIndetifier($str) {
if (ucfirst($str) == $str) {
//Ullllll
}
else if (strtolower($str) == $str) {
//llllll
}
else if (strtoupper($str) == $str) {
//UUUUUU
}
else if (isnumeric($str)) {
//999999
}
}