Created
January 11, 2015 14:53
-
-
Save heywin/3fa7c63c0b52219041ec to your computer and use it in GitHub Desktop.
域名长度筛选
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$content = file_get_contents("list.txt"); | |
//echo $content; | |
$array = explode("\n", $content); | |
// print_r($array); | |
// foreach($array as $a){ | |
// if (strlen($a) < 16 && strlen($a) > 14) | |
// echo $a."<br>"; | |
// } | |
foreach($array as $a){ | |
if (strlen($a) < 14) | |
echo $a."<br>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment