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

PHP ¾«»ª´úÂëÊղأ¨2£©

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

±¾Æª¹Ø¼ü´Ê£ºÊղشúÂ뾫»ª 
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º¡¡¡¡   }     print("ÕâÐÐûÓмÓÖØ£¡£¡£¡<BR>");    //Ö±½Ó´òÓ¡×Ö·û´®         print(makeBold("ÕâÐб»¼ÓÖØÁË£¡£¡£¡") . "<BR>");//µ÷ÓÃfunction makeBold()º¯Êý     print("ÕâÐÐûÓмÓÖØ£¡...

¡¡¡¡   }
    print("ÕâÐÐûÓмÓÖØ£¡£¡£¡<BR> ");    //Ö±½Ó´òÓ¡×Ö·û´®    
    print(makeBold("ÕâÐб»¼ÓÖØÁË£¡£¡£¡") . "<BR> ");//µ÷ÓÃfunction makeBold()º¯Êý
    print("ÕâÐÐûÓмÓÖØ£¡£¡£¡<BR> ");    //Ö±½Ó´òÓ¡×Ö·û´®
?>
</SIZE>
</BODY>
</HTML>

ÓÐĬÈϲÎÊýµÄº¯Êý
<HTML>
<HEAD>
<TITLE>ÓÐĬÈϲÎÊýµÄº¯Êý</TITLE>
</HEAD>
<BODY>
<FONT SIZE=5>
<?
    function printColored($Text, $Color="black")        //¶¨Òåfunctionº¯Êý
    {
        print("<FONT COLOR="$Color">$Text</FONT>");    //»ñÈ¡×Ö·û´®µÄÄÚÈݺÍÑÕÉ«
    }
    printColored("ÕâÊǺÚÑÕÉ«µÄ×Ö£¡");            //µ÷ÓÃfunctionº¯Êý
    print("<BR><BR> ");
    printColored("ÕâÊÇÀ¶ÑÕÉ«µÄ×Ö£¡", "blue");            //µ÷ÓÃfunctionº¯Êý
    print("<BR> ");
?>
</SIZE>
</BODY>
</HTML>

ÓõĹæËã·¨ÅжÏÊÇ·ñÊÇÕûÊý

<HTML>
<HEAD>
<TITLE>ÅжÏÕûÊý</TITLE>
</HEAD>
<BODY>
<?
    function checkInteger($Number)
    {
        if($Number > 1)
        {
            /* ÕûÊý¼õ1ÈÔÈ»ÊÇÕûÊý */
            return(checkInteger($Number-1));
        }
        elseif($Number < 0)
        {
            /* ¶ÔÓÚÒ»¸ö¸ºÊý£¬*/
            /* ¿ÉÒÔ·ÖÎöËüµÄ¾ø¶ÔÖµ*/
            return(checkInteger((-1)*$Number-1));//È¡¾ø¶ÔÖµ£¬°Ñ¸ºÊý°´ÕûÊý·ÖÎö
        }
        else
        {
            if(($Number > 0) AND ($Number < 1))
            {
                return("µ±È»²»ÊÇ");
            }
            else
            {
                /* 0 ºÍ 1 ÊÇÕûÊý       */
                /* ¸ù¾ÝÏà¹ØÊýѧ¶¨Òå */
                return("ÊǵÄ");

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

footer  footer  footer  footer