阅读(4194) (1)

underline2camelcase()

2017-06-22 13:59:54 更新

作用:将驼峰字符串转换为下划线字符串。 语法: string underline2camelcase(string $str[, bool $ucfirst])

参数:

  • $str 下划线字符串。
  • $ucfirst 首字母大写,默认 false。 返回值:
  • 驼峰字符串。

示例:

<?php
echo underline2camelcase('php_is_very_good'); //将输出 phpIsVeryGood