Home >php教程 >PHP源码 >图片计数器实例教程

图片计数器实例教程

WBOY
WBOYOriginal
2016-06-08 17:30:011358browse

以了计数器的漂亮,我们经常会用图片做统计的数字1,2到10我们只要做0,9的图片数字,然后用下面的方法就来做出漂亮的计数器出来哦。

<script>ec(2);</script>

 $fp = fopen ($countfile, "r"); //以只读模式打开文件
 $array_count = 1; //定义一个表示数组元素位置的变量,下面要用
 while (! feof($fp)) {
  $current_number = fgetc($fp);
  $counter_array[$array_count] = $current_number;
  $array_elements = count ($counter_array);
  $array_count = $array_count + 1;
 }
 //显示代码
 echo ("

欢迎您,第");

 for ($array_id = 1;$array_id   echo ("图片计数器实例教程");
 }

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn