国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ??? ?? PHP ???? ??? ?? ??? - ?? ??? ?? ??

??? ?? ??? - ?? ??? ?? ??

Jul 25, 2016 am 09:01 AM

??? ?? ??? - ?? ??? ?? ??
  1. /**
  2. * ??? ?? ??? ?? ??
  3. * @author Li Jun
  4. *
  5. */
  6. class cmtTail{
  7. private $currentPage;
  8. private $totalPage;
  9. /**
  10. * ??? ?? ?? ?? - ?? ?? ??
  11. * @param string $currentPage ?? ??? ??
  12. * @param string $totalPage ? ??? ?
  13. * @throws Exception ??? ??? ? ?? ?? 1?? ? ?? ??? ?????
  14. * @return string
  15. */
  16. function __do($currentPage, $totalPage) {
  17. $this->currentPage=$currentPage;
  18. $this->totalPage=$totalPage;
  19. if($this->totalPage<=10){//? ????? ?? 10??? ?????
  20. if($this->currentPage==1){//The ?? ???? ? ?? ??????
  21. $str='?? ???'.$this->currentTag();
  22. for ($i = 2; $i <= $this->totalPage; $i ) {
  23. $ str=$str.$this->commonTag($i);
  24. }
  25. $str=$str.$this->next();
  26. }elseif ( $this->currentPage ==$this->totalPage){//??? ???? ??????
  27. $str=$this->up();
  28. for ($i = 1; $i <= $this ->totalPage-1; $i ) {
  29. $str=$str.$this->commonTag($i);
  30. }
  31. $str=$str.$ this->currentTag ();
  32. $str=$str.$this->next();
  33. }else{
  34. $str=$this->up();
  35. for($i= 1; $i<$this->currentPage; $i ){
  36. $str=$str.$this->commonTag($i);
  37. }
  38. $str =$str.$ this->currentTag();//?? ??? ?? ??
  39. for ($i = $this->currentPage 1; $i <= $this->totalPage; $i ) {
  40. $ str=$str.$this->commonTag($i);
  41. }
  42. $str=$str.$this->next();
  43. }
  44. }elseif ($this ->totalPage>10){//??? ??? 10?? ???.
  45. if($this->currentPage==1){/8 2
  46. $str=' ?? ???'.$this-> currentTag();
  47. for ($i = 2; $i <= 8; $i ) {
  48. $str=$str.$this->commonTag( $i);
  49. }
  50. $str=$str.'...';//??? ??
  51. $str=$str.$this->commonTag($this->totalPage- 1);
  52. $str= $str.$this->commonTag($this->totalPage);
  53. }elseif($this->currentPage==$this->totalPage) {/ /??? ??????
  54. $str=$this->up();
  55. $str=$str.$this->commonTag(1);
  56. $str=$str.' ...';//??? ??
  57. for ($i = $this->totalPage-6; $i < $this->totalPage; $i ) {
  58. $str=$str. $this->commonTag($i );
  59. }
  60. $str=$str.$this->currentTag();
  61. $str=$str.$this->next() ;
  62. }else {
  63. if ($this->currentPage<6) {
  64. $str=$this->up();
  65. for ($i = 1; $i < ; $this->currentPage; $ i ) {
  66. $str=$str.$this->commonTag($i);
  67. }
  68. $str=$str.$this-> currentTag();
  69. for ( $i = $this->currentPage 1; $i <= 7; $i ) {
  70. $str=$str.$this->commonTag($i) ;
  71. }
  72. $ str=$str.'...';//??? ??
  73. $str=$str.$this->commonTag($this->totalPage);
  74. $str=$str.$this ->next();
  75. }else {
  76. if ($this->currentPage>=$this->totalPage-4) {
  77. $str =$this->up() ;
  78. $str=$str.$this->commonTag(1);
  79. $str=$str.'...';//??? ??
  80. for ($i = $this- >totalPage-6; $i < $this->currentPage; $i ) {
  81. $str=$str.$this->commonTag($i);
  82. }
  83. $str =$str.$this->currentTag();
  84. for ($i = $this->currentPage 1; $i <= $this->totalPage; $i ) {
  85. $str =$str.$this->commonTag($i);
  86. }
  87. $str=$str.$this->next();
  88. } elseif ($this->currentPage< $this->totalPage-4){//1 5 1
  89. $str=$this->up();
  90. $str=$str.$this ->commonTag(1);
  91. $str=$str.'...';//??? ??
  92. $str=$str.$this->commonTag($this->currentPage- 2);
  93. $str= $str.$this->commonTag($this->currentPage-1);
  94. $str=$str.$this->currentTag();
  95. $str=$str.$this- >commonTag($this->currentPage 1);
  96. $str=$str.$this->commonTag($this->currentPage 2);
  97. $str=$str.'.. .';//??? ??
  98. $str=$str.$this->commonTag($this->totalPage);
  99. $str=$str.$ this->next();
  100. }
  101. };
  102. }
  103. }elseif ($this->totalPage<=0){
  104. throw new Exception("???? ??? ?? ? ????. 1");
  105. }
  106. return $str;
  107. }
  108. /**
  109. * ?? ??
  110. * @param int $param ??? ??
  111. * @return ???
  112. */
  113. function commonTag($param) {
  114. return ''.$param.'';
  115. }
  116. /**
  117. * ?? ??? ??? ??
  118. * @param int $param ??? ??
  119. * @return ???
  120. */
  121. function currentTag() {
  122. return ''.$this->currentPage .'';
  123. }
  124. /**
  125. * ?? ??? ?? ??
  126. * @param int $param ?? ??? ??
  127. * @return ???
  128. */
  129. function next() {
  130. if ($this->currentPage==$this-> totalPage) {
  131. return '下一頁(yè)';
  132. }
  133. return '下一頁(yè)';
  134. }
  135. /**
  136. * ?? ??? ?? ??
  137. * @param int $param ?? ??? ??? ??
  138. * @return string
  139. */
  140. function up() {
  141. if ($this->currentPage==1){
  142. return '上一頁(yè)';
  143. }else{
  144. return '上一頁(yè)';
  145. }
  146. }
  147. /**
  148. * cmtTail ?????,
  149. * ??: Comment? ?? ??? ?? ??
  150. * @param string $currentPage ?? ??? ??
  151. * @param string $totalPage ? ??? ?
  152. * @return ???? html ?? ???? ?????
  153. */
  154. ?? ?? GO($currentPage, $totalPage) {
  155. $p=new cmtTail();
  156. return $p-> __do($currentPage, $totalPage);
  157. }
  158. }
復(fù)代碼


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???
PHP ?? ??? ??????? PHP ?? ??? ??????? Jul 17, 2025 am 04:16 AM

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP?? ?? ???? ???? ???? ??? ?????? PHP?? ?? ???? ???? ???? ??? ?????? Jul 08, 2025 am 02:37 AM

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP?? ?? ?? PHP?? ?? ?? Jul 18, 2025 am 04:57 AM

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

PHP?? ???? ??? ?????? PHP?? ???? ??? ?????? Jul 11, 2025 am 03:12 AM

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

PHP ?? ?? ? PHP ?? ?? ? Jul 18, 2025 am 04:51 AM

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

?? PHP : ??? ??? ?? PHP : ??? ??? Jul 18, 2025 am 04:54 AM

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled

PHP?? ??? ? ???? ??? ????? ?? PHP?? ??? ? ???? ??? ????? ?? Jul 12, 2025 am 03:15 AM

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

?? PHP ?? ??? ?? PHP ?? ??? Jul 18, 2025 am 04:52 AM

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

See all articles