title: how can I use multiple paths in php if statement
body: <pre><code>&lt;?php if (preg_match('/\/contact\//', $_SERVER['REQUEST_URI']) === 1): ?&gt;
  &lt;a href="/"&gt;link&lt;/a&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I'm trying to add multiple folders into the same statement like /contact/ and /news/, so the content inside the statement will appear in both folders.</p>
  
  <p>I tried <code>(preg_match('/\/contact\//', '/\/news\//', $_SERVER['REQUEST_URI'])</code>, but it returned errors.</p>
  
  <p>What am I doing wrong?</p>