PHP 从application.ini中检索Zend_Config选项

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP 从application.ini中检索Zend_Config选项相关的知识,希望对你有一定的参考价值。

; /config/application.ini
langs.available = "en,es,pt,de,fr"

/* in your php, eg: bootstrap */
$config = new Zend_Config($this->getOptions(), true);
Zend_Registry::set('config', $config);
$langarray = explode(',',$config->langs->get('available'));

以上是关于PHP 从application.ini中检索Zend_Config选项的主要内容,如果未能解决你的问题,请参考以下文章

application.ini 中的多个 Zend_Mail 配置

所有从 php 中的 ms access 数据库中检索数据

php运行机制与原理

从 Xcode 中的 php 文件中检索数据

从 php 中检索单选按钮的 mysql 值

PHP- 从数据库 Mysql 中检索视频