I get a array like this from a xml/php script.
PHP Code:Array ( [0] => index Object ( [company_name] => DOW JONES INDUSTRIALS INDEX [ticker] => INDU [exchange] => Not Available [last] => 8516.43 [change] => 25.07 (0.30%) [time_last] => 05/21, 16:59 [day_open] => 8485.62 [day_high] => 8523.16 [day_low] => 8431.21 [volume] => ) [1] => index Object ( [company_name] => NASDAQ COMPOSITE INDX [ticker] => COMPX [exchange] => Not Available [last] => 1489.87 [change] => -1.22 (-0.08%) [time_last] => 05/21, 16:59 [day_open] => 1488.27 [day_high] => 1490.82 [day_low] => 1478.15 [volume] => ) )
I can't figure out how to pull out certain value currently I am trying this and it give me a blank line nothing, no errors
$db is the original array variablePHP Code:echo "{$db[1]['company_name']}!";







Bookmarks