title: Is there a "map" function in php?
body: <p>I am trying to find a php equivalent of processing's "map" function so I can re-map a number from one range to another. Does anything exist? Is it called something different?</p>
  
  <p><a href="http://processing.org/reference/map_.html" rel="noreferrer">http://processing.org/reference/map_.html</a></p>
  
  <p>For example to map a value from 0-100 to 0-9.</p>
  
  <pre><code>map(75, 0, 100, 0, 9);
  </code></pre>