In this tutorial you will learn about the Laravel str e() function Example and its application with practical example.
In this article, I’ll show you how to use laravel str e() function with example. We will show example of laravel str e() function in laravel. In this tutorial, we will check if a test string is valid 7 bit ASCII.
Laravel Str::e method
The Str::e method determines if a given string is 7 bit ASCII.
Example:-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<?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); } } |