注册送现金一元秒提现

    1. <form id='0tajt'></form>
        <bdo id='0tajt'><sup id='0tajt'><div id='0tajt'><bdo id='0tajt'></bdo></div></sup></bdo>

          • <small id='t04vf'></small><noframes id='t04vf'>

          • <tfoot id='t04vf'></tfoot>

              <legend id='t04vf'><style id='t04vf'><dir id='t04vf'><q id='t04vf'></q></dir></style></legend>
              <i id='t04vf'><tr id='t04vf'><dt id='t04vf'><q id='t04vf'><span id='t04vf'><b id='t04vf'><form id='t04vf'><ins id='t04vf'></ins><ul id='t04vf'></ul><sub id='t04vf'></sub></form><legend id='t04vf'></legend><bdo id='t04vf'><pre id='t04vf'><center id='t04vf'></center></pre></bdo></b><th id='t04vf'></th></span></q></dt></tr></i><div id='t04vf'><tfoot id='t04vf'></tfoot><dl id='t04vf'><fieldset id='t04vf'></fieldset></dl></div>

                  <bdo id='t04vf'></bdo><ul id='t04vf'></ul>

                  1. <form id='ezd8x'></form>
                      <bdo id='ezd8x'><sup id='ezd8x'><div id='ezd8x'><bdo id='ezd8x'></bdo></div></sup></bdo>

                          当前位置:首页 > 专题 > > PHP新手上路(三)

                          PHP新手上路(三)

                          发布:smiling 来源: php粉丝网  添加日期:2012-11-17 浏览: 评论:0 

                          从一个简单的程序来了解PHP

                          注册送现金一元秒提现PHPZHANDIANDEZAIXIANJIAOCHENGYIJINGHENBANGLE。ERBENWENDEGAIBUFENJIANGRANGNIDUIPHPSHUXIYIDIAN。WOBUKENENGZUODAOMEIYOURENHEYILOU,WODEMUDEZHIZAIYUNENGRANGNIXUNSUKAISHINIDEPHPBIANCHENG。

                          3.1 首要条件

                          NISHOUXIANBIXUYAOYOUYIGEZHENGZAIGONGZUOZHEDEZHICHIPHPDEwebFUWUQI。WOJIADINGZAINIDEFUWUQISHANGSUOYOUPHPWENJIANDEKUOZHANMINGWEI.php3。

                          3.2 PHP的安装

                          YOUGUANPHPDEANZHUANGPEIZHI,KEYICHAYUEWANGYETAOBASHANGDE“PHPANZHUANGQUANGONGLVE”ZHUANTIWENZHANG。

                          3.3 语法

                          注册送现金一元秒提现CONGYUFASHANGKAN,PHPYUYANJINSIYUCYUYAN。KEYISHUO,PHPSHIJIEJIANCYUYANDEYUFATEZHENG,YOUCYUYANGAIJINERLAIDE。WOMENKEYIHUNHEBIANXIEPHPDAIMAHEHTMLDAIMA,BUJINKEYIJIANGPHPJIAOBENQIANRUDAO HTML WENJIANZHONG,WOMENSHENZHIHAIKEYIBA HTML BIAOQIANYEQIANRUZAI PHP JIAOBENLI。YIXIASHINIKEYICAIYONGDEJIZHONGFANGFA。NIKEYIXUANYONGQIZHONGYIZHONGNIZUISHIHEDEBINGQIEJIUZHEIYANGJIANCHIZHEIZHONGFANGFA!

                          CONGHTMLZHONGFENLI

                          YIXIASHIKEYISHIYONGDEFANGFA:

                          1. <? . . . ?>  
                          2. <?php . . . ?>  
                          3. <script language="php"> . . . </script>  
                          4. <% . . . %> 

                          注册送现金一元秒提现ZHU:DANGNISHIYONG“<? . . . ?>”JIANGPHPDAIMAQIANRUYUHTMLWENJIANZHONGSHI,KENENGHUITONGXMLFASHENGCHONGTU,TONGSHI,NENGFOUSHIYONGZHEIYISUOJIANXINGSHIHAIQUJUEYUPHPBENSHENDESHEZHI。WEILEKESHIYINGXMLHEQITABIANJIQI,NIKEYIZAIKAISHIDEWENHAOHOUMIANJIASHANG“php”SHIPHPDAIMASHIYINGYUXMLFENXIQI。RU:“<?php. . . ?>”。YEKEYIXIANGXIEQITAJIAOBENYUYANNEIYANGSHIYONGJIAOBENBIAOJI,RU:“<script language="php"> . . . </script>”。

                          语句

                          YUPerlHECYIYANG,ZAIPHPZHONGYONG“;”LAIFENGEYUJU。NEIXIECONGHTMLZHONGFENLICHULAIDEBIAOZHIYEBIAOSHIYUJUDEJIESHU。

                          注释

                          PHPZHICHIC,C++HEUnixFENGGEDEZHUSHIFANGSHI:

                          1. /* C,C++风格多行注释 */   
                          2. // C++风格单行注释   
                          3. # Unix风格单行注释 

                          echo 和 print

                          注册送现金一元秒提现PHP HE HTML ZUIJIANDANDEJIAOHUSHITONGGUO print HE echo YUJULAISHIXIANDE,ZAISHIJISHIYONGZHONG, print HE echo LIANGZHEDEGONGNENGJIHUSHIWANQUANYIYANG。KEYIZHEIMESHUO,FANSHIYOUYIGEKEYISHIYONGDEDIFANG,LINGYIGEYEKEYISHIYONG。DANSHI,LIANGZHEZHIJIANYEHAISHIYIGEFEICHANGZHONGYAODEQUBIE:ZAI echo HANSHUZHONG,KEYITONGSHISHUCHUDUOGEZIFUCHUAN,ERZAI print HANSHUZHONGZEZHIKEYITONGSHISHUCHUYIGEZIFUCHUAN。TONGSHI,echoHANSHUBINGBUXUYAOYUANKUOHAO,SUOYIechoHANSHUGENGXIANGSHIYUJUERBUXIANGSHIHANSHU。RANGWOMENLAIKANKANXIAMIANZHEIYISHILI:

                          1. <?  
                          2. $a="hello";  
                          3. $b="world";  
                          4. echo "a","b";  
                          5. print "a","b";  
                          6. ?> 

                          用浏览器观看这段代码的运行情况后,你会看到这样的运行结果:
                          aba

                          Parse error: parse error in d:adminmyphphometest.php3 on line 5

                          ZHEISHUOMINGZHEIDUANDAIMABINGBUNENGWANQUANTONGGUOJIESHI,FASHENGCUOWUDEDIFANGJIUZAIDAIMADEDIWUXING:“print "a","b";”。

                          3.4一个简单的实例

                          注册送现金一元秒提现TONGGUOWOMENYIJINGXUEGUODEZHISHI,NIKEYIBIANXIEYIGEZUIJIANDANDECHENGXUSHUCHUYIGEYEXUSHICHENGXUSHIJIEZHONGZUIYOUMINGDECIYU

                          1. <HTML>  
                          2. <HEAD>  
                          3. <TITLE>  
                          4. <?  
                          5. echo "Hello World!";  
                          6. ?>  
                          7. </TITLE>  
                          8. </HEAD>  
                          9. <BODY>  
                          10. <H1>  
                          11. First PHP page  
                          12. </H1>  
                          13. <HR>  
                          14. <?  
                          15. // Single line C++ style comment  
                          16. /*
                          17. printing the message  
                          18. */ 
                          19. echo "Hello World!";  
                          20. # Unix style single line comment  
                          21. ?>  
                          22. </BODY>  
                          23. </HTML> 

                          Tags:php新手入门 php新手上路

                          分享到: 收藏

                          注册送现金一元秒提现相关的文章

                          靠谱的棋牌---首页_Welcome 蓝洞棋牌官网送3金币---首页_Welcome 百灵拼三张-Welcome 聚友棋牌官网下载安装-首页 百胜棋牌---首页_欢迎您