|
|
|
[PHP] GlobIterator и параметр GLOB_BRACE
|
|||
|---|---|---|---|
|
#18+
Всем привет, у функции glob есть параметр GLOB_BRACE. который например, позволяет сделать перечисление по расширению файлов "/var/*.{aaa,bbb,php}", как подобное сделать с помощью итератора GlobIterator ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.09.2012, 15:29:22 |
|
||
|
[PHP] GlobIterator и параметр GLOB_BRACE
|
|||
|---|---|---|---|
|
#18+
itwork, никак, см. http://framework.zend.com/issues/browse/ZF2-243 https://github.com/zendframework/zf2/pull/741 "I think we should iterate over it using the GlobIterator but using "{$path}.*" (without GLOB_BRACE) and preg_match each of the found entry." ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.09.2012, 18:15:29 |
|
||
|
|

start [/forum/topic.php?fid=23&tid=1464743]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
322ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 210ms |
| total: | 619ms |

| 0 / 0 |
