checks whether two monetary objects are equal or not.
Parameters:
Money $money
[bool $strict = true]
(optional) - whether to check currencies or not.
Returns: bool
$m1 = money('12345000');
$m2 = money('12345000');
$m3 = money('12345000', currency('RUB'));
$m1->equals($m2); // true
$m1->equals($m3); // false
📌 Back to the contents.