title: PHP switch with unknown cases
body: <p>In a website based on an integer value I need to show text messages to the user. If the website has an integer value that has been not defined in my code, the site breaks.</p>
  
  <p>How can I handle this situation?</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>$status = 1;
  
  switch (status) 
  {
      case 1:
          status_from_file();
          break;
  
      case 2:
      // ...
  }
  </code></pre>