code is working properly in Core PHP but writing coding in WordPress
When I attempted something similar I experienced the same issue where the HTML code of the page I was generating the CSV from would be included within the CSV mixed with the data I actually wanted. The two things I figured out, after searching and reading and reading and searching was to use ob_end_clean(); before … Read more