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

            ->fluentlyGetOrSet('title')

            ->getter(function ($title) {

                return $title ?? ucfirst($this->handle);

            })

            ->args(func_get_args());

    }
<?php                     if (! $data = $item->get($key)) {


                        $method = 'get'.ucfirst($key);

                        if (method_exists($item, $method)) {

                            $data = call_user_func([$item, $method]);

                        }
<?php                 return in_array($field->type(), ['replicator', 'grid', 'bard']);

            })

            ->each(function ($field) use ($dottedPrefix) {

                $method = 'update'.ucfirst($field->type()).'Children';

                $dottedKey = $dottedPrefix.$field->handle();



                $this->{$method}($field, $dottedKey);
<?php         return $this

            ->fluentlyGetOrSet('title')

            ->getter(function ($title) {

                return $title ?? ucfirst($this->handle);

            })

            ->args(func_get_args());

    }
<?php         return $this

            ->fluentlyGetOrSet('title')

            ->getter(function ($title) {

                return $title ?? ucfirst($this->handle);

            })

            ->args(func_get_args());

    }
<?php     public function clear(Request $request, $cache)

    {

        $method = 'clear'.ucfirst($cache).'Cache';



        return $this->$method();

    }
<?php     private function generateBy($type, $item)

    {

        $method = 'generateBy'.ucfirst($type);



        try {

            return $this->generator->$method($item, $this->request->all());
<?php         return $this

            ->fluentlyGetOrSet('title')

            ->getter(function ($title) {

                return $title ?? ucfirst($this->handle);

            })

            ->args(func_get_args());

    }