title: convert if cycle to switch case
body: <p>Hello I have the following If statement but obviously it is not going to work, my question is how to convert it to switch/case statement</p>
  
  <pre><code> &lt;?php if {
  if($page == 'index') { echo 'images/home_background.jpg' }
  if($page == 'cursos') { echo 'images/cursos_background.jpg' }
  if($page == 'recetas') { echo 'images/recetas_background.jpg' }
  if($page == 'sabias') { echo 'images/sabias_background.jpg' }
  if($page == 'marcas') { echo 'images/marcas_background.jpg' }
  if($page == 'nosotros') { echo 'images/nosotros_background.jpg' }
  if($page == 'galeria') { echo 'images/galeria_background.jpg' }
  if($page == 'contact') { echo 'images/contact_background.jpg' }
  }
  else
  {
     echo 'images/home_background.jpg'
  } ?&gt;"&gt;
  </code></pre>