spl
inconsistent DirectoryIterator+FilterIterator behaviour in PHP?
I wrote a script that is using the FilterIterator class that comes from the Standard PHP Library (SPL) and I get different behabours accross PHP 5.x versions :( Here the accept() function:[详细]
2022-12-17 05:49 分类:问答how to work with RegexIterator::REPLACE mode?
What is wrong in my code: $i = new RegexIterator( new ArrayIterator(array( \'test1\'=>\'test888\', \'test2\'=>\'what?\',[详细]
2022-12-15 05:38 分类:问答How to create data structure with key duplicates in php instead of default hash?
I want to create wrapper class, which will enable keys duplicates while default hash does not allow it. Class should use member overloading mechanism introduced in php5, so it would imitate all the be[详细]
2022-12-12 06:16 分类:问答Make an object searchable with array_search in PHP
I would like to make a class in PHP such as it would be searchable with PHP native method array_search. Currently my class implements开发者_运维问答 IteratorAggregate and Countable, which allows me to[详细]
2022-12-10 05:47 分类:问答PHP array_key_exists() and SPL ArrayAccess interface: not compatible?
I wrote a simple collection class so that I can store my arrays in objects: class App_Collecti开发者_如何学运维on implements ArrayAccess, IteratorAggregate, Countable[详细]
2022-12-08 14:55 分类:问答