PHP Classes

Garbage

Recommend this page to a friend!

      Yahoo Quotes  >  All threads  >  Garbage  >  (Un) Subscribe thread alerts  
Subject:Garbage
Summary:yahooquotes
Messages:3
Author:Todd Hudson
Date:2011-05-16 18:59:13
Update:2011-05-16 19:49:31
 

 


  1. Garbage   Reply   Report abuse  
Picture of Todd Hudson Todd Hudson - 2011-05-16 18:59:14
How do you format the historical quotes into a usable format?
$quotes->histquotes[5]

This didn't work.

  2. Re: Garbage   Reply   Report abuse  
Picture of Andreas Vollenklee Andreas Vollenklee - 2011-05-16 19:42:59 - In reply to message 1 from Todd Hudson
I wrote this class ages ago. But still it seems to work.

try the test_yahooquote.php example file.

The format of the historical prices looks like that:

Array
(
[0] => Array
(
[0] => 2008-08-01
[1] => 25.92
[2] => 25.95
[3] => 25.07
[4] => 25.44
[5] => 82720200
[6] => 23.95
)

[1] => Array
(
[0] => 2008-07-31
[1] => 25.85
[2] => 26.28
[3] => 25.71
[4] => 25.72
[5] => 60461000
[6] => 24.21
)

....

  3. Re: Garbage   Reply   Report abuse  
Picture of Todd Hudson Todd Hudson - 2011-05-16 19:49:31 - In reply to message 2 from Andreas Vollenklee
I am trying to access only specific data, and format it in a way that I can use it.

The example works, but it doesn't allow me to do what I need.

I only want the High / Low for historical data and I can't access it.

Thanks for the help.

Todd

 
For more information send a message to info at phpclasses dot org.