文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>用 PHP 写只有一行代码的文本计数器

用 PHP 写只有一行代码的文本计数器

时间:2008-01-11  来源:061107


?php
file_put_contents($fileName,file_exist($fileName)?1:
(file_get_contents($fileName)+1));
?>
?php
echo sprintf(($a=@file_get_contents('/tmp/counter.txt')+1),
file_put_contents('/tmp/counter.txt', $a));
?>
?php
($a=@file_get_contents('/tmp/counter.txt')+1) | file_put_contents('/
tmp/counter.txt',$a) | print($a);
?>


相关阅读 更多 +
排行榜 更多 +
空中跑酷汉化版

空中跑酷汉化版

赛车竞速 下载
修仙传说

修仙传说

角色扮演 下载
魔界零之迷宫

魔界零之迷宫

冒险解谜 下载