<?php function camelCase($string) { preg_replace_callback('/(?:^|_)(.?)/',"strtoupper('$1')",$string); return $string; } echo camelCase('common/home'); echo camelCase('common_home');
You have javascript disabled. You will not be able to edit any code.