2013年6月13日

摘要: 语法<?PHP//code here?>变量以$开头字符串并置运算符 . echo $txt1 . " " . $txt2计算字符串长度 strlen() 空格算字符 :strlen($txt) strlen("hello world!")字符串内检索一段字符串或一个字符 strpos()返回第一个匹配的位置若无则返回false,字符串首个位置为0非1:strpos("hello world","world") 输出6循环循环遍历数组 foreach(array as value){} : foreac 阅读全文
posted @ 2013-06-13 13:43 Grey原 阅读(369) 评论(0) 推荐(0)

导航