Skip to content

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();
        }
See also  Python code snippet - How to run django project?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.