Staram się zamienić pobrany string "1 176,87 USD/uncja" na wartość liczbową. Niestety spacja między jedynkami nie poddaje się funkcjom replace i trim. String pobieram z podstrony http://www.bankier.pl/inwestowanie/profile...ml?symbol=ZLOTO.
require('simple_html_dom.php'); $html = file_get_html('http://www.bankier.pl/inwestowanie/profile/quote.html?symbol=ZLOTO'); $goldPrice = $html->find(".profilLast", 0)->plaintext;