How do I read a “,” as “
” in PHP/MySQL?

前端 未结 6 554
傲寒
傲寒 2021-01-27 10:55

So I have this MySQL database and a table and in the rows there a lot of \",\" in them, and I wish when they are output on the screen with PHP to be switched to \"
\" inste

6条回答
  •  执笔经年
    2021-01-27 11:44

    Just use str_replace

    $my_output = str_replace(",", "
    ", "no,thanks,text,text");

提交回复
热议问题