Most voted "spliterator" questions
Very interesting part of PHP is SPL. The Standart PHP Library came to meet various needs of useful classes and interfaces to any system, such as Array Classes, iterators, file system iterators and many others. And what is the real use of this? Several.
Learn more…4 questions
Sort by count of
-
16
votes1
answer1315
viewsHow does Spliterator work in Java 8?
In Java 8 (which was released in March 2014), there is a new interface called Splitter. She has a purpose similar to Iterator, but is designed to perform parallel iterations. However, even after…
-
8
votes1
answer104
viewsWhat is the Emptyiterator class for?
In the documentation of PHP, has a class called EmptyIterator When I look at the method documentation EmptyIterator::rewind(), there is written: No Operation, Nothing to do. (No operation, nothing…
-
0
votes1
answer300
viewsWhat is the Traversable interface for in PHP?
In the PHP Handbook we can see that some classes can be iterated with foreach implement an interface called Traversable. For example, the class DatePeriod There, when I have implement an object of…
-
0
votes0
answers223
viewsSplit and swap the array key?
When using the function split in a string obviously the keys will be enumerated from 0 to ... but I would like to choose which key should be, using just one of the words that will be in the string,…