UTF-8 EF BB BF UTF-16 Big Endian FE FF UTF-16 Little Endian FF FE UTF-32 Big Endian 00 00 FE FF UTF-32 Little Endian FF FE 00 00 复制代码 解决方法: 在进行PHP session 操作时,如果出现:Warning: Cannot send session cookie – headers already sent…”或者“Cannot add header information – headers already sent…” 只需对php.ini中的Output_buffering进行设置,默认值为no,修改为1即可。