Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string's first character uppercase
<?php ucfirst(string $string): string
<?php         }



        $drivername = $this->getDriverName();

        $classnameLocal = sprintf('\Intervention\Image\%s\Commands\%sCommand', $drivername, ucfirst($name));

        $classnameGlobal = sprintf('\Intervention\Image\Commands\%sCommand', ucfirst($name));



        if (class_exists($classnameLocal)) {
<?php         $drivername = $this->getDriverName();

        $classnameLocal = sprintf('\Intervention\Image\%s\Commands\%sCommand', $drivername, ucfirst($name));

        $classnameGlobal = sprintf('\Intervention\Image\Commands\%sCommand', ucfirst($name));



        if (class_exists($classnameLocal)) {

            return $classnameLocal;
<?php     private function createDriver()

    {

        if (is_string($this->config['driver'])) {

            $drivername = ucfirst($this->config['driver']);

            $driverclass = sprintf('Intervention\\Image\\%s\\Driver', $drivername);



            if (class_exists($driverclass)) {