how check multiple variable is the same in php

Solutions on MaxInterview for how check multiple variable is the same in php by the best coders in the world

showing results for - "how check multiple variable is the same in php"
Julián
02 May 2018
1       $arr = [
2         count($data['number_unit']) ,
3         count($data['number_floors_block']) ,
4         count($data['operation_executive']) ,
5         count($data['operation_executive_contract']) ,
6         count($data['operationExecutive_according_to_working_conditions'])
7       ];
8
9        if (count($arr) === count(array_unique($arr))) {
10            alert()->error(
11              'لطفا تمام فیلد های داخل بلوک هارو پر کرده سپس اقدام به ثبت آن نمایید' ,
12                           'عملیات ناموفق');
13            return redirect()->back();
14        }