1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,16 +0,0 @@ |
1 |
-<?php |
|
2 |
-/** |
|
3 |
- * Created by PhpStorm. |
|
4 |
- * User: roy |
|
5 |
- * Date: 05/03/2019 |
|
6 |
- * Time: 16:08 |
|
7 |
- */ |
|
8 |
-class Tri{ |
|
9 |
- |
|
10 |
- public static function cmp($a,$b){ |
|
11 |
- if ($a == $b) { |
|
12 |
- return 0; |
|
13 |
- } |
|
14 |
- return ($a < $b) ? -1 : 1; |
|
15 |
- } |
|
16 |
-} |
|
17 | 0 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,21 @@ |
1 |
+<?php |
|
2 |
+/** |
|
3 |
+ * Created by PhpStorm. |
|
4 |
+ * User: roy |
|
5 |
+ * Date: 05/03/2019 |
|
6 |
+ * Time: 16:08 |
|
7 |
+ */ |
|
8 |
+class Tri{ |
|
9 |
+ |
|
10 |
+ public static function cmpVlanInArray($a, $b) |
|
11 |
+ { |
|
12 |
+ return Tri::cmp($a["n_vlan"], $b["n_vlan"]); |
|
13 |
+ } |
|
14 |
+ |
|
15 |
+ public static function cmp($a,$b){ |
|
16 |
+ if ($a == $b) { |
|
17 |
+ return 0; |
|
18 |
+ } |
|
19 |
+ return ($a < $b) ? -1 : 1; |
|
20 |
+ } |
|
21 |
+} |
|
0 | 22 |
\ No newline at end of file |