https://github.com/helloxz/phpclass
自己写的PHP常用类
https://github.com/helloxz/phpclass
Last synced: about 1 month ago
JSON representation
自己写的PHP常用类
- Host: GitHub
- URL: https://github.com/helloxz/phpclass
- Owner: helloxz
- License: apache-2.0
- Created: 2018-09-06T01:08:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T08:16:47.000Z (about 7 years ago)
- Last Synced: 2025-02-24T18:56:22.288Z (over 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPclass
自己写的PHP常用类和一些PHP实用脚本
## Cache.class.php
文件缓存类,使用方法:
```php
create('test',20,'测试内容');
?>
```
## compress.php
* PHP代码压缩,将该文件放到站点某个目录,会自动寻找`.php`文件并进行压缩。(无法压缩二级目录下的PHP文件)
* 原理:就是使用`php_strip_whitespace()`函数去掉PHP代码中的注释和多余空格