title: PHP preg_match to allow only numbers,spaces '+' and '-'
body: <p>I need to check to see if a variable contains anything OTHER than  0-9 and the "-" and the "+" character and the " "(space).</p>
  
  <p>The preg_match I have written does not work. Any help would be appreciated.</p>
  
  <pre><code>&lt;?php
  
  $var="+91 9766554433";
  
  if(preg_match('/[0-9 +\-]/i', $var))
   echo $var;
  ?&gt;
  </code></pre>