Welcome to the Cookbook

loading...

8.5.8 isEqual

There is no translation yet for this section. Please help out and translate this.. More information about translations

boolean Set::isEqual ($val1, $val2 = null)

Determines if two Sets or arrays are equal.

$result = Set::isEqual(array(1), array(1,1));
// False
$result = Set::isEqual(array(1), array(1));
// True
  1. $result = Set::isEqual(array(1), array(1,1));
  2. // False
  3. $result = Set::isEqual(array(1), array(1));
  4. // True