PHP Array in to comma separated list

前端 未结 4 979
灰色年华
灰色年华 2021-01-14 04:42

I have a list of items from a database being parse in an array

Array
(
    [0] => Array
        (
            [dToken] => 731fea87ea9dc61f16e93f1ad2b96         


        
4条回答
  •  难免孤独
    2021-01-14 05:33

    To answer the question corresponding to the tile (transform an Array to a list with separator) use the implode function. To generate a CSV I would google php CSV, I'm sure there are already lots of function to do it.

提交回复
热议问题