if anyone is looking for an easy MTgox price ticker in PHP, After digging around I found one that still works
<?php
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json'));
curl_setopt($c, CURLOPT_URL, 'http://data.mtgox.com/api/2/BTCUSD/money/ticker');
$data = curl_exec($c);
curl_close($c);
$obj = json_decode($data);
echo print_r($obj->{'data'}->{'avg'}->{'display_short'}."\n", true);
?>
edit got it
last price
<?php echo print_r($obj->{'data'}->{'last'}->{'display_short'}."\n", true) ?>