strtoupper

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string uppercase
<?php strtoupper(string $string): string
<?php             $name = $this->email();

        }



        return strtoupper(mb_substr($name, 0, 1).mb_substr($surname, 0, 1));

    }



    public function isSuper()
<?php         $html = collect(['<form', $defaultAttrs, $additionalAttrs])->filter()->implode(' ').'>';

        $html .= csrf_field();



        $method = strtoupper($method);



        if (! in_array($method, ['GET', 'POST'])) {

            $html .= method_field($method);
<?php             {

                public function augment($value)

                {

                    return 'AUGMENTED '.strtoupper($value);

                }

            });
<?php             {

                public function augment($value)

                {

                    return 'AUGMENTED '.strtoupper($value);

                }

            });
<?php         {

            public function augment($value)

            {

                return strtoupper($value);

            }

        };
<?php         {

            public function augment($data)

            {

                return strtoupper($data).'!';

            }



            public function shallowAugment($data)
<?php         {

            public function augment($data)

            {

                return strtoupper($data).'!';

            }



            public function shallowAugment($data)
<?php         {

            public function augment($data)

            {

                return strtoupper($data).'!';

            }

        };
<?php             public function augment($data)

            {

                return array_map(function ($item) {

                    return strtoupper($item).'!';

                }, $data);

            }

        };
<?php             public function augment($data)

            {

                return array_map(function ($item) {

                    return is_string($item) ? strtoupper($item).'!' : $item;

                }, $data);

            }

        };
<?php         {

            public function augment($data)

            {

                return strtoupper($data).'!';

            }

        });
<?php         $user->setPreference('favorite', 'pizza');



        $user->modifyPreference('favorite', function ($value) {

            return strtoupper($value);

        });



        $this->assertEquals('PIZZA', $user->getPreference('favorite'));
<?php             ],

            'transformers' => [

                'title' => function ($value) {

                    return strtoupper($value);

                },

            ],

        ]);
<?php                 'title' => function ($value) {

                    return [

                        'title' => $value,

                        'title_upper' => strtoupper($value),

                    ];

                },

            ],
<?php             public function augment($values)

            {

                return collect($values)->map(function ($value) {

                    return strtoupper($value);

                })->all();

            }

        };