I have associative array '$reportData' having objects of 'report_Modal'.
Attributes of 'report_Modal' are:
private $unique_product_name;
private $min_price_quote;
private $max_price_quote;
private $mean_price_quote;
private $price_variation;
private $savings_potential;
private $vendor_name_OLP;
All setters and getters exists for all private attributes.
I want to write all objects to CSV with header like:
Product Name,Min Price,Max Price,Mean Price,Price Variation,Savings Potential,
Vendor Name OLP
Memory Card,110,200,142.5,1.03,0.23,Kingston
USB,125,230,171.5,1.02,0.27,Sandisk
P.S: I am new to php