public static function normalizeHeaderName($name)
	{
		return preg_replace_callback("'-[a-z]'", function($m) {
			return strtoupper($m[0]);
		}, ucfirst(strtolower(trim($name))));
	}
public static function normalizeHeaderName($name)
	{
		return preg_replace_callback("'-[a-z]'", function($m) {
			return strtoupper($m[0]);
		}, ucfirst(strtolower(trim($name))));
	}
public static function normalizeHeaderName ( $ name ) { return preg_replace_callback ( "'-[a-z]'" , function ( $ m ) { return strtoupper ( $ m [ 0 ] ) ; } , ucfirst ( strtolower ( trim ( $ name ) ) ) ) ; }
Normalize an HTTP header name by capitalizing the first letter and all letters
preceeded by a dash.

@param string $name
@return string
Normalize an HTTP header name by capitalizing the first letter and all letters preceeded by a dash .