Answers for "how check multiple variable is the same in php"

PHP
0

how check multiple variable is the same in php

$arr = [
         count($data['number_unit']) ,
         count($data['number_floors_block']) ,
         count($data['operation_executive']) ,
         count($data['operation_executive_contract']) ,
         count($data['operationExecutive_according_to_working_conditions'])
       ];

        if (count($arr) === count(array_unique($arr))) {
            alert()->error(
              'لطفا تمام فیلد های داخل بلوک هارو پر کرده سپس اقدام به ثبت آن نمایید' ,
                           'عملیات ناموفق');
            return redirect()->back();
        }
Posted by: Guest on April-25-2021

Code answers related to "how check multiple variable is the same in php"

Browse Popular Code Answers by Language