-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.php
More file actions
executable file
·50 lines (45 loc) · 1.04 KB
/
library.php
File metadata and controls
executable file
·50 lines (45 loc) · 1.04 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
<?php
function HarfCagir($harf)
{
$harfler = file('ifadeler.txt');
$count = 0;
foreach ($harfler as $val) {
if(substr($val,0,1) == $harf)
{
$count++;
list($a,$b,$c) = explode(',' , $val);
echo '
<tr>
<th scope="row">'.$count.'</th>
<td>'.$a.'</td>
<td>'.$b.'</td>
<td>'.$c.'</td>
</tr>
';
}
}
}
function ara($aranan)
{
$ifadeler = file('ifadeler.txt');
if (isset($aranan))
{
$tmp = $aranan;
foreach ($ifadeler as $ifade)
{
list($a,$b,$c) = explode(",",$ifade);
if($a == $tmp or $b == $tmp or $c == $tmp)
{
$status = true;
echo '
<tr>
<th scope="row">1</th>
<td>'.$a.'</td>
<td>'.$b.'</td>
<td>'.$c.'</td>
</tr>
';
}
}
}
}