skip to Main Content

Creating optional generators in PHP

I'm struggling with creating optional generator functions in PHP. Essentially, I'm trying to build a function that only turns into a generator if there are multiple values and behaves like a normal function if only a single value is present.…

VIEW QUESTION
Back To Top
Search