title: PHP if statement. Display and image if true
body: <p>I'm accessing an API which is returning the value of an array. I want a image to be displayed based on the result. For example if the div contains "above average" then display an image called aboveAverage.png. </p>
  
  <pre><code>echo $cinfo['crimes']['2013-03']['anti-social-behaviour']['crime_level'];
  </code></pre>
  
  <p>This results is "Above Average" How can I display a particular image to correspond to this?</p>
  
  <p>Something like -></p>
  
  <pre><code>if Div "crime_level" = above average then:
  display aboveAverage.png
  </code></pre>
  
  <p>I'm pretty new to PHP, sorry i'm a noob.</p>