<?php ucwords(string $string, string $separators = " \t\r\n\f\v"): string
<?php private function capitalizeHeaderName(string $name): string { $name = str_replace('-', ' ', $name); $name = ucwords($name); return str_replace(' ', '-', $name); } }