I'd use just:
```
$tablePrefixAlias = preg_match('~^[a-z]~i', $tableName[0]) ? strtolower($tableName[0]) : 't'; 
```