Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Zend Framework 中设置自定义库时和和有什么区别?autoloadernamepaces[] = "foo"autoloadernamespaces.foo = "foo"
autoloadernamepaces[] = "foo"
autoloadernamespaces.foo = "foo"
你最终在配置中得到的基本上是一个数组。一个具有数字索引,而另一个具有提供的键
autoloadernamespaces[] = "foo" // results into this array(0 => "foo"); autoloadernamespaces.foo = "foo" array("foo" => "foo");
后者的优点是您始终可以使用名称对其进行寻址。自动加载器命名空间可能不需要这,但对于其他配置,这可能是一个救命稻草。