鸟树吧 关注:133贴子:2,757
  • 3回复贴,共1

【毒门绝技】【PHP研究】PHP菜鸟专贴

只看楼主收藏回复

<html>
<body>
<?php
//This is a comment
/*
This is
a comment
block
*/
$txt1="Hello World";
$txt2="1234";
echo $txt1 . " " . $txt2;
?>
<?php
echo strlen("Hello world!");
?>
</body>
</html>


1楼2011-01-06 19:35回复
    


    2楼2011-01-06 19:42
    回复
      两种通过 PHP 来输出文本的基础指令:echo 和 print

      


      3楼2011-01-06 19:48
      回复
        strlen()函数用于计算字符串长度 【见2楼】
        strpos()函数用于在字符串内检索一段字符串或一个字符的位置【如下】


        


        4楼2011-01-06 20:12
        回复