PHP ¾«»ª´úÂëÊÕ²Ø_PHPÓ¦ÓÃ_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

PHP ¾«»ª´úÂëÊÕ²Ø

×÷ÕߣººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²PHPά»¤»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£ºÊղشúÂ뾫»ª 
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º   ¾­µäÑ­»·Àý×Ó <HTML> <HEAD> <TITLE>¾­µäÑ­»·Àý×Ó</TITLE> </HEAD> <BODY> <?     for($counter = 1; $counter <= 6; $counter++)        //Ñ­»·6´Î     {         print("<B>counter is...

   ¾­µäÑ­»·Àý×Ó


<HTML>
<HEAD>
<TITLE>¾­µäÑ­»·Àý×Ó</TITLE>
</HEAD>
<BODY>
<?
    for($counter = 1; $counter <= 6; $counter++)        //Ñ­»·6´Î
    {
        print("<B>counter is $counter</B><BR> ");    //´òÓ¡6´Î
    }    
?>
</BODY>
</HTML>


forµÄ¸ß¼¶ÔËÓÃ
<HTML>
<HEAD>
<TITLE>forµÄ¸ß¼¶ÔËÓÃ</TITLE>
</HEAD>
<BODY>
<?
    /* 
    ** ´òÓ¡±ØÒªµÄ˵Ã÷ÎÄ×Ö 
    */
    print("<B>¾àÀëÐÇÆÚÒ»»¹Óм¸Ì죿</B> ");
    print("<OL> ");
    for($currentDate = date("U");             //¶¨Òå$currentDateʱ¼ä¸ñʽ
        date("l", $currentDate) != "Monday";     //ÅжÏÊDz»Êǵ±Ç°ÏµÍ³Ê±¼äÊÇMonday
        $currentDate += (60 * 60 * 24))        //µ±Ç°Ê±¼ä¼ÓÉÏ1Ìì
    {
        /* 
        ** ´òӡʱ¼äÃû³Æ 
        */
        print("<LI>" . date("l", $currentDate) . " ");
    }

    print("</OL> ");
?>
</BODY>
</HTML>

º¯ÊýµÄ¼òµ¥µ÷ÓÃ:

<HTML>
<HEAD>
<TITLE>¼òµ¥µÄº¯Êý</TITLE>
</HEAD>
<BODY>
<FONT SIZE=5>
<?
    function printBold($inputText)            //¶¨Òåfunction printBold£¨£©
    {
        print("<B>" . $inputText . "</B>");    ////´òÓ¡$inputText
    }
    print("ÕâÐÐûÓмÓÖØ£¡<BR> ");            //Ö±½Ó´òÓ¡×Ö·û´®
    printBold("ÕâÐмÓÖØÁË£¡£¡£¡");            //µ÷ÓÃfunction printBold()º¯Êý
    print("<BR> ");
    print("ÕâÐÐûÓмÓÖØ£¡<BR> ");            //Ö±½Ó´òÓ¡×Ö·û´®
?>
</FONT>
</BODY>
</HTML>
Óзµ»ØÖµµÄº¯Êý
<HTML>
<HEAD>
<TITLE>Óзµ»ØÖµµÄº¯Êý</TITLE>
</HEAD>
<BODY>
<FONT SIZE=5>
<?
    function makeBold($inputText)        //¶¨Òåfunction makeBold()º¯Êý
    {
        $boldedText = "<B>";
        $boldedText .= $inputText;
        $boldedText .= "</B>";
        return($boldedText);        //·µ»Ø±äÁ¿$boldedText

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-14014-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-03-30 05:07:25  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer