title: PHP Return Loop Result
body: <p>I am new to the world of coding as well as PHP and am wondering how I can use <code>return</code> when looping. For example I would like to return/display 1-10 however not use echo.</p>
  
  <pre><code>$start = 1;
  $end = 11;
  
  for($start; $start &lt; $end; $start=$start+1) {
  
  echo $start; //how can I use return?
  
  }
  </code></pre>