この配列から必要な値を取得する方法がわかりません:::3台の車両に必要な値はです。
- [クラス]=>span3 scare_img the image Href&image src
- [クラス]=>価格scrap_price価格
- [クラス]=>scare_make the make
- [クラス]=>scrap_year年
私はPHP配列のドキュメントを調べてこれを理解しようとしましたが、あまり成功しませんでした。
Array
(
[query] => Array
(
[count] => 12
[created] => 2013-02-04T17:46:34Z
[lang] => en-US
[results] => Array
(
[div] => Array
(
[0] => Array
(
[class] => span3 scrape_img
[span] => Array
(
[class] => scrape
[a] => Array
(
[href] => http://cant-reveal-this.com/cars/hyundai/ix35-2-0gls-auto/
[img] => Array
(
[alt] => Featured Image
[src] => /wp-content/uploads/2013/02/01863-270x150.jpg
)
)
)
)
[1] => Array
(
[class] => price scrape_price
[p] => From R249,900
)
[2] => Array
(
[class] => span3 scrape_img
[span] => Array
(
[class] => scrape
[a] => Array
(
[href] => http://cant-reveal-this.com/cars/hyundai/ix35-2-0gls/
[img] => Array
(
[alt] => Featured Image
[src] => /wp-content/uploads/2013/02/1930-270x150.jpg
)
)
)
)
[3] => Array
(
[class] => price scrape_price
[p] => From R239,900
)
[4] => Array
(
[class] => span3 scrape_img
[span] => Array
(
[class] => scrape
[a] => Array
(
[href] => http://cant-reveal-this.com/cars/ford/everest-3-0-tdci-xlt-4/
[img] => Array
(
[alt] => Featured Image
[src] => /wp-content/uploads/2013/02/1876-270x150.jpg
)
)
)
)
[5] => Array
(
[class] => price scrape_price
[p] => From R279,900
)
)
[span] => Array
(
[0] => Array
(
[class] => scrape_make
[strong] => Make
[content] => hyundai
)
[1] => Array
(
[class] => scrape_year
[strong] => Year
[content] => 2011
)
[2] => Array
(
[class] => scrape_make
[strong] => Make
[content] => hyundai
)
[3] => Array
(
[class] => scrape_year
[strong] => Year
[content] => 2011
)
[4] => Array
(
[class] => scrape_make
[strong] => Make
[content] => ford
)
[5] => Array
(
[class] => scrape_year
[strong] => Year
[content] => 2011
)
)
)
)
)