hello i am export file in php to CSV with this code:

<?php
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=extraction.csv");
header("Pragma: no-cache");
header("Expires: 0");
echo "allhimachal.com";
?>

How i can export the color of allhimachal.com is red and font is bold in CVS file.
please help me.

CVS is a text file, without formatting.

If you want to open it in Microsoft Excel with a specific style, you have to create an XLS file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.