<?php ucfirst(string $string): string
<?php $basename = substr($basename, 0, $dotPos); } $relativePath = dirname(ucfirst($relativePath)).DIRECTORY_SEPARATOR.$basename; $relativePath = str_replace(DIRECTORY_SEPARATOR, '\\', $relativePath);