Skip to content

All topics  /  Laravel

Laravel str e() function Example

Laravel

Nov 30, 2020

Hi Guys,

In this blog,I will you how to use laravel str e() function example. We will show example of e function in laravel.The Str::e method to determines if a given string is 7 bit ASCII.

Here, The Str::e method determines if a given string is 7 bit ASCII.

Example


<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\FileController;
use Illuminate\Support\Str;
class HomeController extends Controller
{
    /**
    * Show the application dashboard.
    *
    * @return \Illuminate\Contracts\Support\Renderable
    */
    public function index()
    {
        $e1 = Str::e('foo');
        dd($e1);
    }
}

Output

It Will help you...