▲ | mappu 8 days ago | ||||||||||||||||||||||||||||
Every single one of those steps buffers into a temporary variable - this isn't efficient like a bash pipe. | |||||||||||||||||||||||||||||
▲ | quietbritishjim 8 days ago | parent | next [-] | ||||||||||||||||||||||||||||
Genuine question from a non-PHP user: Does PHP support iterator-like objects? Like Python I mean, where mydict.values() produces values on demand, not immediately realised as a list. Or are all steps necessarily guaranteed to be fully realised into a complete list? | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | troupo 7 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
That's how function calls work in every language. Unless it's streams. |