<?php public function setEncode($incode,$outcode){ $this->inEncode=$incode; $this->outEncode=$outcode; } public function setTitle($titlearr){ $title=""; foreach($titlearr as $v){ if($this->inEncode!=$this->outEncode){ $title.=iconv($this->inEncode,$this->outEncode,$v)."\t"; } else{ $title.=$v."\t"; } } $title.="\n"; return $title; }
Usage
$excel=new Excel();
??? ??:
$excel->setEncode("utf-8","gb2312") //??????? ?? ?? ??? ????? ?????. ?? ?? $excel->setEncode("utf-8","utf-8");
?? ??? ??
$titlearr=array("a","b","c" , "d");
??? ??? ??
$contentarr=array(
1=>array("ab","ac","ad","ae"),
2=> ; array("abc","acc","adc","aec"),
3=>array("abd","acd","add","aed"),
4=> ; array("abe","ace","ade","aee"),
);
$excel->getExcel($titlearr,$contentarr,"abc");
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

29 Jul 2016
excel 2007 ?? ???? ?? ?? ??: excel 2007 ?? ???? ?? ?? ?? Excel? ??????? ???? PHP ??: cvs? ????? ??????? ???? ???? ?????(?: PHP_SELF? ?? ?? ??? ????? ?????. $_SERVER[" PHP_SELF"] ? ?? ???) PHP ?? ?? ??? ??? ????: <?php $fname = $_FILES['MyFile']['name'] $do = copy($_FILES['MyFile'][ 'tmp_name'],$fname ) if ($do) { ec

29 Jul 2016
??? ?? ??? ?? ?? ?????: ??? ?? ??? ?? ?? ????? ??? ?? ????(1): ? ??? ?????? ???? ??? ??? ??: # ------ --- --------------------- # # ??? ??? ?? 'author' # CREATE TABLE ??? ( author_id int (6) DEFAULT '0' NOT NULL auto_increment, first_name varchar(20)

29 Jul 2016
??? ?? ??? ?? ??: ??? ?? ??? ?? ?? php ??? ?? ?? ?? ??? ??: ??? ?? ??? ?????: <?php /** ?? ????**/ class DefaultController extends AppController { public function index() { $len = 5 ; $str = "ABCDEFGHIJKLNMPQRSTUVWXYZ123456789"; $im = imagecreatetruecolor (70, 20);

29 Jul 2016
??? ?? ??? ?? ?? : ??? ?? ??? ?? ?? ?? ?? ???? (2) : ?? ???? ?? ?? : <? if(!$UploadAction): ?> <? ??? ???. //???: Kong Xiuxiang. Date: 2001/3/24 /* session_start(); if (!isset($auth_passed)) { echo "? ??? ??? ???? ??? ? ????." } if(isset($u_name)) {


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
