-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vysledok.php
38 lines (31 loc) · 890 Bytes
/
Vysledok.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?
function Vysledok($fun_name)
{
global $needed;
$temp;
for ($j = 0; $j < sizeof($needed); $j++) {
global $points;
GetValues($needed[$j]); //zistovanie, ktore body pokryva neuplny vektor, vysledok je v poli $points
$points = array_unique($points);
sort($points);
$count = 0;
for ($i = 0; $i < sizeof($points); $i++) {
$item = $fun_name . "_" . $points[$i];
global $$item;
if ($$item == '1' or $$item == 'x') {
$count++;
}
}
if ($count == sizeof($points)) {
$temp[] = $needed[$j];
}
unset($GLOBALS['points']);
unset($points);
}
for ($j = 0; $j < sizeof($temp); $j++) {
Bin_to_bool_function_item($temp[$j]);
if ($j < (sizeof($temp) - 1)) {
print(" + ");
}
}
}