Created
April 2, 2016 21:05
-
-
Save ko31/f2bd97fb1ac468948aea47bb9cde3dc0 to your computer and use it in GitHub Desktop.
【php】metaタグのgeneratorをチェックする
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 | |
$lines = file('url.txt', FILE_IGNORE_NEW_LINES); | |
foreach ($lines as $line) { | |
$val = explode(',', $line); | |
$tags = get_meta_tags($val[1]); | |
if (isset($tags['generator'])) { | |
echo $val[0] . "は " . $tags['generator'] . " です\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment