move an array if the corresponding values are at the minimum of 5 iterations has a duplicate

后端 未结 1 1786
不思量自难忘°
不思量自难忘° 2021-01-20 17:24

Is there a php code that can move a multidimensional array minimum of 5 iterations if the values has a duplicate?

This is an example code.



        
1条回答
  •  广开言路
    2021-01-20 18:01

    array_chunk solve my issue.

    ';
            $array[] = $chunks[$y][$x];
        }
    }
    print_r($array);
    ?>

    Anyway, my next problem is if I have two rows in an array. Like the example below.

     1, 'value2' => 2),
                     array('value' => 3, 'value2' => 1)
                     );
    
    ?>

    How can I check both sides (value and value2) for duplicates and used my existing code?

    0 讨论(0)
提交回复
热议问题