-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.php
More file actions
31 lines (29 loc) · 835 Bytes
/
set.php
File metadata and controls
31 lines (29 loc) · 835 Bytes
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
<?php
/**
*移动和联通、电信号码分开
*
*/
$mobiles = file("all.txt");
$ymbi = "";
$qmbi = "";
foreach($mobiles as $mob)
{
$tmob = trim($mob);
$sub = substr($tmob,0,3);
$array = array('134','135','136','137','138','139','150','151','152','157','158','159','182','183','187','188','147');
//$array = array('133','153','180','181','189');
if(in_array($sub,$array))
{
$ymbi.=$tmob."\r\n";
}
else
{
$qmbi.=$tmob."\r\n";
}
}
$f = fopen("yd.txt",'a');
fwrite($f,$ymbi);
fclose($f);
$t = fopen("qt.txt",'a');
fwrite($t,$qmbi);
fclose($t);