HI Rizwan
The code is not working. THE RESULT ON THE PAGE IS LIKE THIS
olx.com.pk/item/toyota-corolla-gli-
...
Notice: Undefined offset: 1 in /home/XYZ/public_html/1/example.php on line 40
olx.com.pk/item/corolla-altis-2011-
...
Notice: Trying to get property of non-object in /home/XYZ/public_html/1/scraper.php on line 64
AND ON THE SAME PAGE AT THE END
[1] => Array
(
[attributes] => Array
(
[Ref No] => 817406451
[Year] => 2011
[Engine type] => Petrol
[Mileage] => 100000
[Description] => Only one handed use have no fault
[City] => Gujranwala
[Category] => Cars » Toyota
[Manufacturer] =>
)
[carinfo] => Array
(
[price] => 1600000
[Title] =>
[Manufacturer] => Toyota
[Description] => Only one handed use have no fault
[url] => http://olx.com.pk/item/corolla-altis-2011-fully-loaded-and-untouched-IDTjKL1.html#360fcb1fa3
[portal_ad_id] => 817406451
[images] => Array
(
)
[image] =>
[Category] => Cars » Toyota
[Model] => not mentioned
[City] => Gujranwala
)
[adinfo] => Array
(
[source] => olx
[url] => http://olx.com.pk/item/corolla-altis-2011-fully-loaded-and-untouched-IDTjKL1.html#360fcb1fa3
)
[contactinfo] => Array
(
[Cell Number] =>
[Contact Name] => Rana Humza
)
)