title: how to find only numbers in a array by using regexp in php?
body: <p>i am using <code>$front-&gt;getRequest()-&gt;getParams()</code> to get the url params. They look like this</p>
  
  <pre><code>Zend_Debug::dump($front-&gt;getRequest()-&gt;getParams());
  
  array(4) {
    ["id"] =&gt; string(7) "3532231"
    ["module"] =&gt; string(7) "test"
    ["controller"] =&gt; string(6) "index"
    ["action"] =&gt; string(5) "index"
  }
  </code></pre>
  
  <p>i am interested in running this through <code>preg_match_all</code> to get back only the id numbers by using some regexp similar to <code>([\s0-9])+</code></p>
  
  <p>for some reason i cant isolate that number.</p>
  
  <p>There is the possibility that there will be more <code>id</code> like values in the array, but the <code>preg_match_all</code> should give them back to me in a new array</p>
  
  <p>any ideas?</p>
  
  <p>thanks</p>