I am trying to scrape some data by using curl and simple_html_dom library, i can successfully scrape data but the problem is i don't want some text with data.
This is the code i am using :
$price = $html->find("div[id='vi-mskumap-none'] span[itemprop='price']",0)->plaintext;
This is html source code :
<div id="vi-mskumap-none" style="" class="u-flL w29 vi-price ">
<span class="notranslate" id="prcIsum" itemprop="price" style="" content="515.0">US $515.00</span>
It is scraping
US $515.00
But I want to remove US $ and only want
515.00
can someone please help