title: php if elseif wildcards based on URLs
body: <p>Searched high and low for an easier way to do what I do...</p>
  
  <p>I have a function that produces <code>$absLink</code> result as <code>'www.example.com/current/page/'</code></p>
  
  <p>I then use this for php if and elseif to do things like:</p>
  
  <pre><code>&lt;?php else if ($absLink == 'www.example.com/homepage/' { ?&gt;
  This the homepage
  &lt;?php } elseif ($absLink == 'www.example.com/about/' { ?&gt;
  This the about page
  &lt;?php } else { ?&gt;
  This probably the 404 not found page
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>But sometimes URLs get really deep and I'd like to include similar css styles for multiple pages. Let's say <code>/about/</code> also has <code>/about/staff</code> and <code>about/mission-statement/</code> and in the future more pages will be added... Can I do a wild card? In my mind it would work like this:</p>
  
  <pre><code>&lt;?php if ($absLink == 'www.ohiowebgroup.com/about/*') { ?&gt;
  Everything in the about directory follows suit to everything here
  &lt;?php } else { ?&gt;
  Rejection happens here lol
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Make sense? p.s. <code>$absLink</code> stands for Absolute Link, although I removed <code>http://</code> from it recently cause that's just a non-useful annoyance I decided.</p>