Concept Flow - Generator function execution model
Call generator function
First iteration: Start execution until yield
Yield value to caller
Pause execution
Caller resumes generator
Continue execution until next yield or return
Repeat yield or finish
Generator ends, return value or stop iteration
This flow shows how a PHP generator function runs: it starts, yields values one by one pausing after each, and resumes when the caller asks for the next value until it finishes.