Back to index

php5  5.3.10
compare_function.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 function compare_function($var1, $var2) {
00004   if ($var1 == $var2) {
00005     return 0;
00006   } else if ($var1 < $var2) {
00007     return -1;
00008   } else {
00009     return 1;
00010   }
00011 }
00012 
00013 ?>