. if (!defined('EG')) die('Direct access not allowed!'); class Lang_En_Formats_Fields { public static function getLabel($fieldName) { if (strstr($fieldName,",")) { $temp = explode(",",$fieldName); for ($i=0; $i< count($temp); $i++) { $temp[$i] = self::getLabel($temp[$i]); } return implode (" and ",$temp); } else { $fieldName = str_replace("_"," ", $fieldName); return ucfirst($fieldName); } } }