1.1 misho 1: <?php 2: 3: function compare_function($var1, $var2) { 4: if ($var1 == $var2) { 5: return 0; 6: } else if ($var1 < $var2) { 7: return -1; 8: } else { 9: return 1; 10: } 11: } 12: 13: ?>