Laravel str e() function Example

10-Apr-2023

.

Admin

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...

#Laravel 8

#Laravel 7

#Laravel

#Laravel 6