floatval()
Posted: Thu Jan 13, 2011 9:29 pm
So I'm fetching data from a webpage and trimming it using this code:
The echo is for testing purposes. The script echos this:
'somenumber' being the number im trying to fetch. so my question is, why does floatval keep returning zero?
Code: Select all
$getposts = substr($content, $ppos+19, (strpos($content, " ("))-($ppos+19));
echo($getposts."|".floatval($getposts)."<br><br>");Code: Select all
somenumber|0