Compare to values of two arrays in PHP

前端 未结 6 1436
南方客
南方客 2021-01-20 14:56

Hi i want to compare all the values of 2 arrays and end up with a true or false . I am using the code below and would of thought that the result would be false . but that is

6条回答
  •  清歌不尽
    2021-01-20 15:16

    Hi i want to compare all the values of 2 arrays and end up with a true or false

    $bool = ($array1 == $array2);
    

    http://us2.php.net/manual/en/language.operators.array.php

提交回复
热议问题