title: PHP include partial file name
body: <p>So I've been looking for an option in PHP I'm not sure exists, but maybe I'm just overlooking the solution as I often do. I'd like to use includes in my PHP to break up my code into smaller bite-sized chunks. I'd like to make the include look for a part of the filename and not the whole name.</p>
  
  <p>So for example. I have 1 file and 3 sub-files.</p>
  
  <ul>
  <li>jobs.php
  <ul>
  <li>jobs_view_simple.php</li>
  <li>jobs_view_detail.php</li>
  <li>jobs_view_print.php</li>
  </ul></li>
  </ul>
  
  <p>In the jobs.php file I have 3 includes for the various needs enclosed in some logic.</p>
  
  <pre><code>include 'partials/jobs_view_simple.php';
  include 'partials/jobs_view_detail.php';
  include 'partials/jobs_view_print.php';
  </code></pre>
  
  <p>Is there a way in PHP that I can point to the subfile by referencing the last word/s. Similarly to how wordpress has <a href="http://codex.wordpress.org/Function_Reference/get_template_part" rel="nofollow">get_template_part</a>. I think this would be helpful for me in this project, but I'm not sure how this is possible. Maybe this is a function I will need to write that doesn't already exist.</p>
  
  <p>Thoughts?</p>