title: php chr() with numbers over 255
body: <p>I have been using the php <code>chr()</code> function, and I had the idea of printing every character by using a variable that starts at one, prints of the ASCII value, and then increments it and then repeats this action. This is what I have done:</p>
  
  <pre><code>&lt;?php
  $i = 0;
  while($i&lt;255)
  {
      echo chr($i)."\n";
      $i++;
  }
  ?&gt;
  </code></pre>
  
  <p>That successfully works. It prints out every ASCII value, but I have noticed that if I use something with a value over 255 like this: </p>
  
  <pre><code>chr(300);
  </code></pre>
  
  <p>it will just start going through from the start again as soon as it is over 255. So, I was wondering if there was anyway to make php print two characters if it is over 255 (eg. when you use the number 300 it places the character 255 followed by character 45). Is this possible? If so, how would I do it?</p>