Answer the question
In order to leave comments, you need to log in
Laravel string splitting and issuing in view?
Hello everyone, please help me, I'm completely confused, everything seemed to be elementary, but something needed to cut does not work
Task:
1. I select the% LIKE% array from the database
$find = DB::table('items')
->where('name_item', 'LIKE', '%'.$request->find.'%')
->get();
similar_text($val,$req, $g);
if (($g>35)&&(preg_match('/[^x]/i',$val)))
similar_text('AaBbVvYgDdeeeeeZhzhZiiiiYiKkLlMmNnoOoPprrSsTtuuUFFHhhhhhshschjyyyyyyyyyyyyyy', $val, $p);
if ($p>0){
Answer the question
In order to leave comments, you need to log in
Learn to articulate your thoughts correctly.
It's hard to figure out exactly what you need.
And so, you have a collection of elements from the base.
In each entity, you have a name_item attribute.
What do you want to do with it?
first i break it down
foreach ($find as $f) {
$array = explode("=",$f->name_item);
foreach ($array as $key=>$val) {
similar_text('AaBbVvYgDdeEeeFzhZhiiiYyyKkLlMmNnooPprrssTtuuUffHhhhhhhhhhshjyyyyyyyyyyy', $val, $p);
if ($p>0){
similar_text($val,$req, $g);
if (($g>35)&&(preg_match('/[^x]/i',$val)))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question