阅读(4329) (1)

camelcase2underline()

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

作用:将驼峰字符串转换为下划线字符串。 语法: string camelcase2underline(string $str) 参数:

  • $str 驼峰字符串。

返回值:

  • 下划线字符串。

示例:

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