|
|
|
[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&msg=37944901&tid=1464743]: |
0ms |
get settings: |
5ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
174ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 192ms |
| total: | 416ms |

| 0 / 0 |
