find the closest number to the first appearance of a symbol
<pre><code>&lt;?php
$url = 'here i give a url';

$raw = file_get_contents($url);

preg_match('/\w(\d*).*?\$/',$raw,$matches);


echo $matches;
?&gt;
</code></pre>

<p>in a given <strong>external website</strong> I need <strong>the closest number</strong> to the <strong>first appearance</strong> of a symbol here the symbol is $ </p>

<p>this is what I tried for now I just get "array" printed</p>
