一.不管什么程序,function name(){}, for(){}, ….这太多了,不说也知道什么用了. 二.$str{4}在字符串的变量的后面跟上{}大括号和中括号[]一样都是把某个字符串变量当成数组处理. 三.{$val}这种情况就是我遇到的问题,这时候大括号起的作用就是,告诉PHP,括起来的要当成变量处理. 如下例子: //The following is okay as it's inside a string. Constants are not //looked for with
html 如下: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>后台管理系统登录</TITLE><META http-equiv=Content-Type content="text/html; charset=utf-8"><script src="/docs/j
近期做微信卡券开发遇到一个问题,创建卡券post数据给服务器时返回data format error, do NOT use json unicode encode (/uxxxx/uxxxx), please use utf8 encoded text!.这就奇怪了,代码中一直用的是UTF-8,怎么就跟unicode搭上关系了呢.一通搜索后发现,用PHP的json_encode来处理中文的时候,中文都会被编码,变成不可读的, 类似”/u***”的格式,微信服务器端不能接受. $a = arra
#include <iostream> using namespace std; struct struct1{ /* struct1(){ cout<<"this is output by struct1 !"; } if add this code block , such errors like 'you must initlizer data number of struct1 by constructor in g++98' will occor in