<?php
$st="shig";
echo$st[0]."<br>";
echo$st[1]."<br>";
echo$st[2]."<br>";
echo$st[3]."<br>";
echo$st{0}." ";
echo$st{1}." ";
echo$st{2}." ";
echo$st{3}."<br>";
$s="http://www.baidu.com";
echo strrev($s);
fopen($s,"r") or die("打开失败");
echo "<br>";
$n="547 sdhfue .....";
echo trim($n,"0..9");
echo nl2br("\n");
echo nl2br("one ine\nanother line");
echo"<br>";
$ns="<B>webserver:</B>&'linux'&'apache'";
echo htmlspecialchars($ns,ENT_COMPAT);
echo"<br>";
$nt="一个'quote'是<b>bold</b>";
echo htmlentities($nt);
echo "<br>";
$nn="<font color='red' size=7>linux</font><i>apache</i><u>mysql</u><b>php</b>";
echo strip_tags($nn);
echo strip_tags($nn,"<font>");
echo strip_tags($nn,"<b><u><i>");
echo"<br>";
$sn=123456789;
echo number_format($sn);
echo"<br>";
echo number_format($sn,2);
echo"<br>";
echo number_format($sn,2,".",",");
echo"<br>";
$pas="lamp";
echo md5($pas)."<br>";
$st1="admin";
$st2="Admin";
if(strcmp($st1,$st2)==1)
{
echo"用户存在<br>";
}
?>