A
A
avtorlego2017-08-26 13:50:47
Laravel
avtorlego, 2017-08-26 13:50:47

How to do a string search, and if it didn't find anything in the array, return the place where it didn't find it?

Let's say there is a string
Hello toast
there is an array:
$words = ['тост']
Should return Hello,
and all this excluding spaces and so on, only by text

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
JhaoDa, 2019-05-03
@JhaoDa

Where is the name of at least one route? That's right, there aren't any. Why be surprised? If you don’t read the documentation , then such “Everything seems to be correct” in the future, a wagon awaits you.

N
NubasLol, 2019-05-03
@NubasLol

Route::get('/', function () {
        return view('login');
    })->name('login');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question