title: Repeat a code in php for n times
body: <p>I have some code in php that do something. But I want some code that Repeat that code for example 10 or 20 times.</p>
  
  <p>How can I do this?</p>
  
  <p>For example this is my code:</p>
  
  <pre><code>&lt;?php
    mysqli_query($con,
        "INSERT INTO x (x, y, z) VALUES ('a', 'b',c)");
    mail("a@v.com",$subject,$message,"From: $from\n");
    mysqli_query($con,
        "UPDATE x SET c=d WHERE x='a' AND y='b'");
  ?&gt;
  </code></pre>