Please use this corrected version of function "valuesAreIdentical" instead of that which I previously posted (dependencies found in previous post); if an Admin can just replace the fn snippet, awesome/thanks, otherwise, apologies.
<?php
public static function valuesAreIdentical($v1, $v2):bool{
$type1 = gettype($v1);
$type2 = gettype($v2);
switch(true){
case ($type1 !== $type2):
return false;
case ($type1==='boolean' || $type1==='integer' || $type1==='double' || $type1==='string'):
return ($v1===$v2);
case ($type1==='array'):
return self::arraysAreIdentical($v1, $v2);
case ($type1==='object'):
return self::objectsAreIdentical($v1,$v2);
case ($type1==='NULL'):
return true;
case ($type1==='resource' || $type1==='unknown type'):
return true;
default:
return true; } }
?>