Jor*_*rdy 11 php string
如何将PHP strtoupper函数用于字符串的前两个字符?或者还有其他功能吗?
因此字符串'hello'或'Hello'必须转换为'HEllo'.
JJJ*_*JJJ 18
$txt = strtoupper( substr( $txt, 0, 2 ) ).substr( $txt, 2 );
这适用于长度小于2个字符的字符串.
归档时间:
14 年,3 月 前
查看次数:
7828 次
最近记录:
13 年,4 月 前