Download Address: Http://www.codeplex.com/PHPExcel
Here is a summary of several ways to use
Include ' phpexcel.php ';
Include ' phpexcel/writer/excel2007.php ';
Or include ' phpexcel/writer/excel5.php '; For the output. xls
Create an
You can use this code to successfully parse the data that is obtained by the Everyone connected site post.
Copy the Code code as follows:
$js ';$obj =json_decode ($json _string);Echo $obj->name; Prints FooEcho $obj->interest[1]; Prints PHP
Here
If you want to remove whitespace from the beginning and end of the string, you can use the PHP internal function trim (). However, we often want to completely clear the blanks. You need to clear the opening and closing blanks, turn multiple
Copy CodeThe code is as follows:
/* Creates a compressed zip file */function Create_zip ($files = Array (), $destination = ", $overwrite = False) {If the zip file already exists and overwrite is false, return falseif (file_exists ($destination) &&!
Before using the basic image creation function, you need to install the GD library file. If you want to use JPEG-related image creation functions, you also need to install JPEG-6B, if you want to use the Type 1 font in the image, you must install
Looping through the creation of directory methods
This will generate the Image.gif directory
Copy the Code code as follows:
$filepath = "Test/upload/2010/image.gif";Mk_dir ($filepath);Looping through the creation of catalogsfunction Mk_dir ($dir,
Copy CodeThe code is as follows:
/*Code features: Use PHP to skillfully set the image by the time of creation to classify storage;The picture file property must be removed from the read-only attribute, otherwise it cannot be deletedby
"Warning": Do not modify without permission
//-----------------------------------------------------------------------------------
-------
//-----------------------------------------------------------------------------------
-------
//
"File name": C_
string read and Write functions fgets and fputs
The function of reading a string function Fgets function is to read a string into a character array from the specified file, in the form of a function call: fgets (character array name, n, file pointer)
Fread: Calculates the length in bytes, reads the data according to the specified length and number of times, and stops after the end is encountered or the specified length is completed.
Fgets: Full line read, encountered carriage return newline or
Make the Forum Faster PHP acceleration Setup PHP acceleration: Zend Optimizer Optimized PHP program
Zend Optimizer V2.5.7 for Windows
Software language: English
Operating Environment: WIN9X/NT/2000/XP
Zend Optimizer V2.5.7 for Windows software
Because of the need to connect to Oracle so from two times development and page style personally feel phpmydatagrid is better to get started. This article begins with a MySQL-based approach, and briefly introduces two development for Oracle
Time () is a number in PHP that indicates how many seconds have gone from 1970-01-01 to now, it's weird.
But it's easy to calculate,
To find out the day before is time () -60*60*24;
To find out when the previous year was time () *60*60*24*365
So how
PHP, adapted to the post-simple encryption of ciphertext
Copy the Code code as follows:
Replacement encryption replacement from the previous versionfunction Compress_func ($match) {return strlen ($match [0]). $match [0]{0};}function
Building a dBASE data table
int dbase_create (string filename,array fields)
Open dBASE Data Sheet
int Dbase_open (string filename,int flags)
Close a dBASE data table
Boolean dbase_close (int dbase_identifier)
Clean up dBASE Data sheets
BOOL
Engine files
Copy the Code code as follows:
/*** The OOP class template engine developed silently based on the Discuz template engine can support template caching and generate hash MD5 values. By the hash value to determine whether the template
We do not have a lot of PHP data, we do not have a copy of the Php4gb.chm. I admire the function library part of it most, the real online help. But the pace of PHP development is so fast, you sui, I recently found some extended array functions in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service