Function : compare

Compare checks if all arguments supplied are of equal values. It is case sensitive and can be used to test any data type.

Syntax
  compare(...$arguments)

  
  $arguments: list of values to be compared
   
                  
Sample 1
  
  vdump(compare(2, [1])); //false
                  
Sample 2
  vdump(compare(12, 12, 12)); //true
                  
Sample 3
  vdump(compare(12, '12')); //true
                  
Sample 4
  vdump(compare(12, 3.5)); //false