/** * 숫자만 리턴 * @param string $hp */ function only_num($hp) { return preg_replace('/[^0-9]/','',$hp); }