摘要: 字符串三种定义方式: 1.双引号定义: 当双引号中包含变量时,变量会与双引号中的内容连接在一起;<双引号当成变量> $str="string"; echo “$str”; //string; 2.单引号定义: 当单引号中包含变量时,变量会被当做字符串输出。 echo '$str' //$str 3. 阅读全文
posted @ 2016-07-08 11:19 Docter 阅读(110) 评论(0) 推荐(0)