php蛇形字符串轉駝峯

方法很多,幾個思路: $value = ucwords(str_replace(['-', '_'], ' ', $value)); lcfirst(str_replace(' ', '', $value)); 輸出結果便是: 其他方法: /* * 下劃線轉駝峯 */ private function convertUnderline($str) { $str = preg_replace
相關文章
相關標籤/搜索