Laravel str e() function Example

Admin   Laravel   167  2021-03-15 00:40:05

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'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpbh'},{'server':'sg3plvcpnl300092'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.');

dd($e1);

}

}

Output

It Will help you...