Difference between `yield from $generator` and `return $generator`? : <p>I have a function that gives back a generator. At the moment it uses <code>yield from</code>:</p>

<pre><code>function foo()
{
    $generator = getGenerator();
    // some other stuff (no yields!)
    yield from $generator;
}
</code></pre>

<p>If I replace that <code>yield from</code> with a simple <code>return</code>, does that change anything in this case? Maybe in the execution? Or performance? Does <code>yield from</code> produces a new 'outer' iterator?</p>

<p>I know, in other cases <code>yield from</code> can be more flexible because I can use it several times and even mix it with simple <code>yield</code>s, however that doesn't matter for my case.</p>
