Back to index

php5  5.3.10
Functions
compare_function.inc File Reference

Go to the source code of this file.

Functions

 compare_function ($var1, $var2)

Function Documentation

compare_function ( var1,
var2 
)

Definition at line 3 of file compare_function.inc.

                                        {
  if ($var1 == $var2) {
    return 0;
  } else if ($var1 < $var2) {
    return -1;
  } else {
    return 1;
  }
}