Load info from span tag
Posted: Mon Aug 21, 2006 11:02 am
Hello. I'm looking for a way to get the average US gas price from the site Gasbuddy.com using PHP. After looking at the source code of the site, I found that the average price is contained within a specific <span> tag:
Is there a way to use PHP to load the number contained within the <span> tag, then make it into a variable that I can use in calculations?
Thanks
Tom
Code: Select all
<span id="GBPS_lblUSToday">2.911</span>Thanks
Tom

