摘要 腾兴网为您分享:PHP 源代码压缩小工具,掌上看家,鱼乐贝贝,优软商城,优美图等软件知识,以及易捷pdf阅读器,vr漫游大师,odin3,小猪o2o,新博少儿围棋对弈平台,手机天猫,双创在线,vcredist,officediary,中国童装城,365抽奖软件,环球贸易网,自动定时开关机,同济德语,智能体温计等软件it资讯,欢迎关注腾兴网。#!/usr/bin/env http://opensource.org/licenses/lgpl-2.1.php'); fwrite($out, '// http://querypath.org.' . PHP_EOL); foreach ($files as $f) { if ($f !== __FILE__) { $contents = file_get_contents($f); foreach (token_get_all($contents) as $token...
#!/usr/bin/env http://opensource.org/licenses/lgpl-2.1.php');
fwrite($out, '// http://querypath.org.' . PHP_EOL);
foreach ($files as $f) {
if ($f !== __FILE__) {
$contents = file_get_contents($f);
foreach (token_get_all($contents) as $token) {
if (is_string($token)) {
fwrite($out, $token);
}
else {
switch ($token[0]) {
case T_REQUIRE:
case T_REQUIRE_ONCE:
case T_INCLUDE_ONCE:
// We leave T_INCLUDE since it is rarely used to include
// libraries and often used to include HTML/template files.
case T_COMMENT:
case T_DOC_COMMENT:
case T_OPEN_TAG:
case T_CLOSE_TAG:
break;
case T_WHITESPACE:
fwrite($out, ' ');
break;
default:
fwrite($out, $token[1]);
}
}
}
}
}
fclose($out);
?>
相关推荐