public static function camelize($str) { return preg_replace_callback('/_([a-z0-9])/', function ($c) { return strtoupper($c[1]); }, $str); }