更多>
最新下载
24小时阅读排行榜
- 1 XPath的id()函数怎么快速查找具有特定ID的元素
- 2 Laravel 配置缓存最佳实践:为什么不能在视图中直接调用 env()
- 3 mysql触发器是什么_mysql自动执行机制说明
- 4 TCP客户端在指定本地端口后出现30秒延迟的原因及解决方案
- 5 如何实现购物车功能_mysql购物车表结构设计
- 6 css 页面在手机端点击区域错位怎么办_避免使用固定定位尺寸
- 7 Go新手如何做一个工具类项目_Go实用工具开发实践
- 8 Go语言反射遍历map怎么写_Golang map反射示例
- 9 css flex 元素垂直对齐偏移怎么办_align-items baseline 调整
- 10 TensorFlow子类化模型中层的可重用性解析:参数化层与无参层的本质区别
- 11 c++如何使用std::atomic实现无锁编程 保证多线程数据安全【并发进阶】
- 12 XML上传到FTP服务器 Java的Apache Commons Net库
- 13 浏览器兼容性问题 XML DOM在不同浏览器中的差异
- 14 Dapper如何连接PostgreSQL Dapper Npgsql使用教程
- 15 C++里的std::string是如何进行短字符串优化的?(SSO技术减少内存分配)
更多>
最新教程
-
- Node.js 教程
- 15485 2025-08-28
-
- CSS3 教程
- 1544619 2025-08-27
-
- Rust 教程
- 22775 2025-08-27
-
- Vue 教程
- 25251 2025-08-22
-
- PostgreSQL 教程
- 21838 2025-08-21
-
- Git 教程
- 8853 2025-08-21
下载首页 / 类库下载 / 邮件类库
<?php
/**
* Simple autoloader that follow the PHP Standards Recommendation #0 (PSR-0)
* @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md for more informations.
*
* Code inspired from the SplClassLoader RFC
* @see https://wiki.php.net/rfc/splclassloader#example_implementation
*/
spl_autoload_register(function ($className) {
$className = ltrim($className, '\\');
$fileName = '';
if ($lastNsPos = strripos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
}
$fileName = __DIR__ . DIRECTORY_SEPARATOR . $fileName . $className . '.php';
if (file_exists($fileName)) {
require $fileName;
return true;
}
return false;
});这是一份PHP邮件回复解析器库,需要的朋友可以下载使用。
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
