title: Retrieving a numeric value from an html string
body: <p>I am currently trying to extract a numeric value from an html string. I am currently using <code>preg_match</code> but to no luck. All I desire is to get the numeric value set as param of a javascript function <code>myFunction</code>. As of now I get an empty array. Any help to achieve this? </p>
  
  <pre><code>$data = "&lt;th style='text-align:center;width:33%;'&gt;&lt;a onclick='return myfunction(12314568);' href='#test' class='btn mini full'&gt;Test&lt;/a&gt; &lt;/th&gt;";
  
  preg_match("/\[return myfunction([0-9]+)\]/", $data, $m);
  print_r($m);
  </code></pre>