摘要: 1 <?php 2 //1,函数返回值 3 function validatelogin($username,$password){ 4 $actualuser="xxx"; 5 $actualpass="xxx"; 6 if (strcmp($username,$actualuser)==0&&strcmp($password,$actualpass)==0){ 7 returntrue; 8 }else{ 9 returnfalse; 10 } 11 } 12 13 //strcmp(str1,str2... 阅读全文
posted @ 2011-06-16 15:45 fsl 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1,字符串变量可以使用单引号声明也可以使用双引号声明2,如果一个字符串中包含变量,这是使用双引号声明的变量会输出变量内容,使用单引号则输出变量名本身3,heredoc,在heredoc中可以直接引用php中的变量,同时为了容易区分可以使用花括号将该变量括起来4,转义符号是 \5,字符串连接可以使用点... 阅读全文
posted @ 2011-06-16 00:12 fsl 阅读(763) 评论(0) 推荐(0) 编辑