str lower() function example in Laravel



Hello,

At this time, i we’ll present you str decrease() operate instance in laravel. This text will provide you with easy instance of str decrease() operate instance in laravel. you’ll study str decrease() operate instance in laravel. So let’s comply with few step to create instance of str decrease() operate instance in laravel.

Instance :


<?php

namespace AppHttpControllers;

use IlluminateHttpRequest;
use AppHttpControllersFileController;
use IlluminateSupportStr;

class HomeController extends Controller
{
    /**
     * Present the appliance dashboard.
     *
     * @return IlluminateContractsSupportRenderable
     */
    public operate index()
    {
        $lower1 = Str::decrease('Boy');
        
        print_r($lower1);
        // output - boy

        $lower2 = Str::decrease('CAR');
        
        print_r($lower2);
        // output - automotive

        $lower3 = Str::decrease('CHILD');

        print_r($lower3);
        // output - youngster

    }
}

Output:


"boy"
"automotive"
"youngster"

I hope it’s going to help you…



Komentar

Postingan populer dari blog ini

PHP 8 Multiple Select Dropdown Example

Laravel 8 Get HTTP Hostname

JQuery Drag And Drop Menu Example