多应用+插件架构,代码干净,支持一键云编译,码云点赞13K star,4.8-4.12 预售价格198元 广告
所有字符串都使用单引号('),除非包含需要转义的字符(比如\n之类)才允许使用双引号"。字符串中如果需要包含变量/数组/对象,请将字符串拆分,用点(.)连接变量/数组/对象。向函数传递字符串变量,不要加引号。对于在Here Doc里面使用的变量/数组/对象,请用大括号嵌套。 例如: /* wrong */ $str = "This is a really long string with no variables for the parser to find."; do_stuff("$str"); $str = "This is a $var string"; /* right */ $str = 'This is a really long string with no variables for the parser to find.'; do_stuff($str); $str = 'This is a ' . $var . 'string';