jeudi 1 octobre 2020

How to check a specific data exists in an array of data

$vehicleNo=strip_tags(trim(Input::get('vehcleNumber1'))) . '-' . strip_tags(trim(Input::get('vehcleNumber2')));

its an vehicle no typed in textfield and i want to check this data already exist in $vehicles(array of data of vehicles no) or not

$date = Carbon::today()->subDays(1);
$vehicles = Customer_details::select('vechicle_no')->where('branch_id',$branchId)
           ->where( 'entry_date', '>=', $date)
           ->get()->toArray();


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/36o0KZO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire