title: how to validate numbers and special characters only with regex in php
body: <p>i have function to validate user input a against numbers-special chars pattern (no alpha)but i have not do it exactly,and i searched over the internet to find such this but i not find,any help</p>
  
  <pre><code>function  validate_num($input){
  
      return ( ! preg_match("^[0-9*#+]+$", $input)) ? FALSE : TRUE;
  
  
  }
  </code></pre>