Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Get Content Of Span With Id

Tags: strtotime


$string = "<span id=\"lastPrice\">29.00</span>";
preg_match("/\<span id\=\"lastPrice\"\>([\d.]+?)\<\/span\>/",$string,$match);
print "<pre>";
echo $match[1];
//var_dump($match[1]);
print "</pre>";
?>
<?php
$date1 = date('Y-m-d');
$date2 = '2006-07-01';
$days = (strtotime() - strtotime()) / (60 * 60 * 24);
echo "Number of days since '2006-07-01': $days";
?>


This post first appeared on What Is AJAX.?, please read the originial post: here

Share the post

Get Content Of Span With Id

×

Subscribe to What Is Ajax.?

Get updates delivered right to your inbox!

Thank you for your subscription

×