Pear PHP_Compat package

Source: Internet
Author: User
Pear's PHP_Compat package. read Pear's PHP_Compat package. Pear's PHP_Compat is an interesting package. It provides some php5 proprietary functions that can be used in php4, such as file_put_contents, array_combine, str_split .......... in this way, even on the php4 host, you can enjoy one in advance.

Pear's PHP_Compat is an interesting package. It provides some php5 proprietary functions that can be used in php4, such as file_put_contents, array_combine, str_split .......... in this way, even on the php4 host, you can enjoy the convenience of the php5 function in advance.

Usage
PLAIN TEXT
PHP:
Require_once 'php/Compat. php ';
 
// Load file_put_contents
PHP_Compat: loadFunction ('File _ put_contents ');
 
// Load str_split, array_chunk and file_get_contents
PHP_Compat: loadFunction (array ('Str _ split ', 'Array _ chunk', 'File _ get_contents '));
?>
The preceding example shows that n php5 special functions can be loaded at a time.

Package Information: PHP_Compat
Http://pear.php.net/package/PHP_Compat

Author: volcano was published on March 13, 2006 at am.

Copyright information: This information can be reproduced at will. during reprinting, you must mark the original source and author information of the article in the form of hyperlinks and this statement.

Permanent link-http://www.ooso.net/index.php/archives/267

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.