think_php正则转换为:ThinkPhp

浏览:1065 发布日期:2013/01/16 分类:功能实现

$str="think_php";
preg_replace("/(?:^|_)([a-z])/e", "strtoupper('\\1')",$str)
转换后为:ThinkPhp
评论( 相关
后面还有条评论,点击查看>>