title: Compare array values to calculate % in PHP?
body: <p>So the goal is to be able to create a dynamic value for my progress bar based on dynamic variables from the database. Below is a pseudo code for what i am looking for if its possible:</p>
  
  <pre><code>//League rank names
  ['bronze_V','bronze_IV','bronze_III','bronze_II','bronze_I'];
  
  Lets say i start at bronze_IV to bronze_II i need to calculate that to 100?
  and then i need to store that value is that possible to be dynamic?
  </code></pre>