/Upload/documents/handbook/template-guide/loop/loop.html
HTML | 205 lines | 198 code | 7 blank | 0 comment | 0 complexity | 3fdfa404cad7c210ee2b2beb15b4dab1 MD5 | raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
- <meta http-equiv="content-type" content="text/html; charset=gbk" />
- <meta name="Author" content="???Dyhb">
- <meta name="Keywords" content="DoYouHaoBaby,Framework">
- <meta name="Description" content="The DoYouHaoBaby PHP Framework | ?????????????">
- <link rel="stylesheet" type="text/css" href="./../../media/css/style.css" />
- <link rel="stylesheet" type="text/css" href="./../../media/css/highlight.css" />
- </head>
- <body style="margin:0">
- <div id="header"><img src="./../../media/images/logo.png" border="0" title="The DoYouHaoBaby PHP Framework Logo" ></div>
- <div id="content">
- <div id="version">
- The DoYouHaoBaby PHP Framework????????<br>
- Copyright(c) <a href="http://doyouhaobaby.net">DoYouHaoBaby.NET</a>
- All Rights Reserved.
- </div>
-
-
- <div class="menu">
- <table cellspacing=0 cellpadding=0 width="95%" border=0>
- <tbody>
- <tr>
- <th align=middle colspan=3>The DoYouHaoBaby PHP Framework????????</th>
- </tr>
- <tr>
- <td valign=bottom align=left width="25%">
- <a accesskey="p" href="../../index.html">??</a>?
- </td>
- <td valign=bottom align=middle width="50%">
- </td>
- <td valign=bottom align=right width="25%">
- <a accesskey="n" href="./index.html">??</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div id="box">
- <div class="title">[ Loop?? ]</div>
- <div class="detail">
- <p>
- ????????????<span style="color: rgb(0, 128, 0);"><strong>for??</strong></span><span style="color: rgb(128, 128, 128);"><strong>( ??loop ) </strong></span>?????<span style="color: rgb(0, 128, 0);"><strong>for( ??loop )</strong></span>???????????</p>
- <div class="title2">
- <span style="color: rgb(0, 0, 255);">1???????for???</span></div>
- <p>
- ????????????????????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN><loop start='1'> </SPAN></SPAN></LI>
- <LI><SPAN> The DoYouHaoBaby Framework - simple loop <br> </SPAN></LI>
- <LI class=alt><SPAN></loop> </SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN><</SPAN><SPAN class=keyword>for</SPAN><SPAN> start='1'> </SPAN></SPAN></LI>
- <LI><SPAN> The DoYouHaoBaby Framework - simple </SPAN><SPAN class=keyword>for</SPAN><SPAN> <br> </SPAN></SPAN></LI>
- <LI class=alt><SPAN></</SPAN><SPAN class=keyword>for</SPAN><SPAN>> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ????????PHP ?????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN><?php !defined('DYHB_PATH') && </SPAN><SPAN class=func>exit</SPAN><SPAN>; </SPAN><SPAN class=comment>/* DoYouHaoBaby Framework ?????? ????:2002-01-13 00:35:15 */</SPAN><SPAN> ?> </SPAN></SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=vars>$nLoopStart90084</SPAN><SPAN> = 1 ;</SPAN><SPAN class=vars>$nLoopEnd70983</SPAN><SPAN> = 0 ; </SPAN></SPAN></LI>
- <LI class=alt><SPAN></SPAN><SPAN class=keyword>for</SPAN><SPAN>( </SPAN><SPAN class=vars>$nLoopValue32562</SPAN><SPAN>=</SPAN><SPAN class=vars>$nLoopStart90084</SPAN><SPAN>; </SPAN><SPAN class=vars>$nLoopValue32562</SPAN><SPAN><=</SPAN><SPAN class=vars>$nLoopEnd70983</SPAN><SPAN>; </SPAN><SPAN class=vars>$nLoopValue32562</SPAN><SPAN> += 1 ) : ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN> The DoYouHaoBaby Framework - simple loop <br> </SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN><?php </SPAN><SPAN class=keyword>endfor</SPAN><SPAN>; ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN> </SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=vars>$nLoopStart40380</SPAN><SPAN> = 1 ;</SPAN><SPAN class=vars>$nLoopEnd64187</SPAN><SPAN> = 0 ; </SPAN></SPAN></LI>
- <LI class=alt><SPAN></SPAN><SPAN class=keyword>for</SPAN><SPAN>( </SPAN><SPAN class=vars>$nLoopValue21054</SPAN><SPAN>=</SPAN><SPAN class=vars>$nLoopStart40380</SPAN><SPAN>; </SPAN><SPAN class=vars>$nLoopValue21054</SPAN><SPAN><=</SPAN><SPAN class=vars>$nLoopEnd64187</SPAN><SPAN>; </SPAN><SPAN class=vars>$nLoopValue21054</SPAN><SPAN> += 1 ) : ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN> The DoYouHaoBaby Framework - simple </SPAN><SPAN class=keyword>for</SPAN><SPAN> <br> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN><?php </SPAN><SPAN class=keyword>endfor</SPAN><SPAN>; ?> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ???<br />
- <img src="./../../media/images/loop.jpg" border="0" /></p>
- <p>
- ?????????<br />
- ??</p>
- <p>
- ???<br />
- <img src="./../../media/images/loop2.jpg" border="0" /></p>
- <p>
- <span style="color: rgb(255, 0, 0);"><strong>???</strong></span>???????for??<span style="color: rgb(0, 128, 0);"><strong>????</strong></span>???????????</p>
-
- <br /><div class="title2">
- <span style="color: rgb(0, 0, 255);">2????for??</span></div>
- <p>
- ??????????????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN><loop start='1' </SPAN><SPAN class=func>end</SPAN><SPAN>='10' </SPAN><SPAN class=keyword>var</SPAN><SPAN>='myValue' step='3'> </SPAN></SPAN></LI>
- <LI><SPAN> The DoYouHaoBaby Framework - complete loop <br> </SPAN></LI>
- <LI class=alt><SPAN></loop> </SPAN></LI>
- <LI><SPAN>----------------<br> </SPAN></LI>
- <LI class=alt><SPAN><</SPAN><SPAN class=keyword>for</SPAN><SPAN> start='1' </SPAN><SPAN class=func>end</SPAN><SPAN>='10' </SPAN><SPAN class=keyword>var</SPAN><SPAN>='myValue' step='3'> </SPAN></SPAN></LI>
- <LI><SPAN> The DoYouHaoBaby Framework - complete loop <br> </SPAN></LI>
- <LI class=alt><SPAN></</SPAN><SPAN class=keyword>for</SPAN><SPAN>> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ????????PHP ?????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN><?php !defined('DYHB_PATH') && </SPAN><SPAN class=func>exit</SPAN><SPAN>; </SPAN><SPAN class=comment>/* DoYouHaoBaby Framework ?????? ????:2002-01-13 00:39:03 */</SPAN><SPAN> ?> </SPAN></SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=vars>$nLoopStart17318</SPAN><SPAN> = 1 ;</SPAN><SPAN class=vars>$nLoopEnd45727</SPAN><SPAN> = 10 ; </SPAN></SPAN></LI>
- <LI class=alt><SPAN></SPAN><SPAN class=keyword>for</SPAN><SPAN>( </SPAN><SPAN class=vars>$myValue</SPAN><SPAN>=</SPAN><SPAN class=vars>$nLoopStart17318</SPAN><SPAN>; </SPAN><SPAN class=vars>$myValue</SPAN><SPAN><=</SPAN><SPAN class=vars>$nLoopEnd45727</SPAN><SPAN>; </SPAN><SPAN class=vars>$myValue</SPAN><SPAN> += 3 ) : ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN> The DoYouHaoBaby Framework - complete loop <br> </SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN><?php </SPAN><SPAN class=keyword>endfor</SPAN><SPAN>; ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN>----------------<br> </SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=vars>$nLoopStart83316</SPAN><SPAN> = 1 ;</SPAN><SPAN class=vars>$nLoopEnd73809</SPAN><SPAN> = 10 ; </SPAN></SPAN></LI>
- <LI class=alt><SPAN></SPAN><SPAN class=keyword>for</SPAN><SPAN>( </SPAN><SPAN class=vars>$myValue</SPAN><SPAN>=</SPAN><SPAN class=vars>$nLoopStart83316</SPAN><SPAN>; </SPAN><SPAN class=vars>$myValue</SPAN><SPAN><=</SPAN><SPAN class=vars>$nLoopEnd73809</SPAN><SPAN>; </SPAN><SPAN class=vars>$myValue</SPAN><SPAN> += 3 ) : ?> </SPAN></SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN> The DoYouHaoBaby Framework - complete loop <br> </SPAN></LI>
- <LI><SPAN> </SPAN></LI>
- <LI class=alt><SPAN><?php </SPAN><SPAN class=keyword>endfor</SPAN><SPAN>; ?> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ???<br />
- <img src="./../../media/images/loop3.jpg" border="0" /></p>
- <p>
- ???????????<br />
- <DIV class=dp-highlighter><OL class=dp-c>
- <LI class=alt><SPAN><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI class=alt><SPAN>---------------- </SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - complete loop </SPAN></LI></OL></DIV></p>
- <p>
- ???<br />
- <img src="./../../media/images/loop4.jpg" border="0" /></p>
-
- <br /><div class="title2">
- <span style="color: rgb(0, 0, 255);">3????for??</span><span style="color: rgb(255, 0, 0);">???loop?</span><span style="color: rgb(0, 0, 255);"> ?</span></div>
- <p>
- ??????????????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN>{d*</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN><SPAN class=vars>$i</SPAN><SPAN>=1;</SPAN><SPAN class=vars>$i</SPAN><SPAN><10;</SPAN><SPAN class=vars>$i</SPAN><SPAN>++} </SPAN></SPAN></LI>
- <LI><SPAN> The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> <br> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>{/d*</SPAN><SPAN class=keyword>for</SPAN><SPAN>} </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ??????PHP ?????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN><?php !defined('DYHB_PATH') && </SPAN><SPAN class=func>exit</SPAN><SPAN>; </SPAN><SPAN class=comment>/* DoYouHaoBaby Framework ?????? ????:2002-01-13 00:45:13 */</SPAN><SPAN> ?> </SPAN></SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=keyword>for</SPAN><SPAN>( </SPAN><SPAN class=vars>$i</SPAN><SPAN>=1;</SPAN><SPAN class=vars>$i</SPAN><SPAN><10;</SPAN><SPAN class=vars>$i</SPAN><SPAN>++ ): ?> </SPAN></SPAN></LI>
- <LI class=alt><SPAN> The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> <br> </SPAN></SPAN></LI>
- <LI><SPAN><?php </SPAN><SPAN class=keyword>endfor</SPAN><SPAN>; ?> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ???<br />
- <img src="./../../media/images/loop5.jpg" border="0" /></p>
- <p>
- ?????????<br />
- <DIV class=dp-highlighter><DIV class=bar></DIV>
- <OL class=dp-c>
- <LI class=alt><SPAN><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI>
- <LI class=alt><SPAN>The DoYouHaoBaby Framework - ????</SPAN><SPAN class=keyword>for</SPAN><SPAN> </SPAN></SPAN></LI></OL></DIV></p>
- <p>
- ???<br />
- <img src="./../../media/images/loop6.jpg" border="0" /></p>
- <p>
- <span style="color: rgb(255, 0, 0);"><strong>???</strong></span>????????<span style="color: rgb(0, 128, 0);"><strong>d*</strong></span> ???????????????<span style="color: rgb(0, 128, 0);"><strong>foreach??</strong></span><span style="color: rgb(255, 0, 0);"><strong>??</strong></span>?</p>
- <p>
- ???loop???????</p>
- </div>
- </div>
-
- <div class="menu">
- <table cellspacing=0 cellpadding=0 width="95%" border=0>
- <tbody>
- <tr>
- <td valign=top align=middle width="34%">
- <a accesskey="h" href="../../index.html">??</a>
- </td>
- </tr>
- <tr>
- <td valign=top align=middle width="34%">
- <a accesskey="u" href="./index.html">??</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- </div>
- <div id="footer">Copyright (c) <a href="http://doyouhaobaby.net" title="The DoYouHaoBaby Framework" >DoYouHaoBaby</a> All rights reserved.?</div>
- </body>
- </html>