preg_replace_callback( '/^(.?)/', function ($matches) { return strtoupper($matches[1]); }, $input ); ]]>
'/^(.?)/e', "strtoupper('\\1')", $input ); ]]>