title: How to trim CIDR notation off an IP?
body: <p>I want to get rid of the CIDR notation and tried the following, but it doesn't seem to work like this:</p>
  
  <pre><code>&lt;?php
    $txt='156.67.0.0/16';
    $re='(\\/)'.'(\\d+)';
  
    $end = rtrim($txt,$re);
    echo $end;
  ?&gt;
  </code></pre>