I would like to ask that how can I write a php array std object to a csv file.
Convert array to csv Didn't solve my problem.
This is my Array
Array
(
[0] => stdClass Object
(
[lotNum] => 1
[commissionRate] => 4.0%
[detailUrl] => JEq7E6IEa
[promotionVolume] => 0
[packageType] => piece
[price] => US $80.54
[imageUrl] => BOX.jpg
[subject] => Box
[salePrice] => US $60.41
[commission] => US $0.00
[productId] => xxxx1
)
[1] => stdClass Object
(
[lotNum] => 1
[commissionRate] => 4.0%
[detailUrl] => JEq7E6IEa
[promotionVolume] => 0
[packageType] => piece
[price] => US $80.54
[imageUrl] => BOX.jpg
[subject] => Box
[salePrice] => US $60.41
[commission] => US $0.00
[productId] => xxxx1
)
)
How can I put data of each product in one row of csv file? Thanks :)