I am trying to retreive the current stock price from Google Finance:
http://finance.google.com/finance/info?client=ig&q=AAPL
How can I extract just the price ("1")?
<?php
$string = file_get_contents("http://finance.google.com/finance/info?client=ig&q=AAPL");
$json = json_decode($string, true);
$price = $json["1"];
echo $price;
?>