'How can I remove blank Column when exporting in csv use phpexcel

I export to csv from php using phpexcel library. In my file i want to export multidimensional array. My first, and second row set as header, that have different count column:

Name Address Phone Number
Item Qty
Grace Texas 098987
Orange 2

When I exported on csv it becomes

"Name","Address","Phone Number"
"Item,"Qty",""
"Grace","Texas","098987"
"Orange","2",""

enter image description here

How can I remove double quote on empty column?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source