每天进步一点
1.explode
<?php
$a = "1983#1987#1999";
$arr = explode("#", $a);
echo $arr[2];
?>
result:1999
2.foreach
<?php
$arr=array("zhangkai","jim","tom");
foreach($arr as $key=>$value){
echo "arr[$key]=$value<br>";
}
?>
result:
arr[0]=zhangkai
arr[1]=jim
arr[2]=tom
3.MYSQL在PHP5中的应用