/** * / lấy phần cuối của id * * @param mixed $content là một id * @return mixed string * */ public function getTableSuffixByAlphabet($contentID) { $prefix = global_common::convertIntToChar(substr($contentID, 0, 2)); // if (strpos(global_common::ANPHABET, strtolower($prefix)) === false) { $strPreChar = global_common::OTHER_PREFIX_CHAR; } else { $strPreChar = strtolower($prefix); } return $strPreChar; }