How to extract only integers from string and chosen letters?
<p>I am successfully extracting integers from string.</p>

<p>How to do it but leaving strings "k ", "m " and "b "?</p>

<p><em>This code takes given website code and extracts numbers, I need numbers and "k ", "m " and "b "</em></p>

<pre><code>$objectId = 15259;
$lines = file('http://testwebsite.com?obj=' . $objectId);
foreach ($lines as $line_num =&gt; $line) {
    $lineCrawl = htmlspecialchars($line);
    $stringSum = "$stringSum$lineCrawl";
}

function get_string_between($string, $start, $end){
    $string = " ".$string;
    $ini = strpos($string,$start);
    if ($ini == 0) return "";
    $ini += strlen($start);
    $len = strpos($string,$end,$ini) - $ini;
    return substr($string,$ini,$len);
}

$parsed = get_string_between($stringSum, "Current guide price", "Today");

$guideprice = ereg_replace("[^0-9]", "", $parsed); 

echo $guideprice; 
</code></pre>
