从MySQL使用PHP删除逗号 [英] Remove commas using php from mysql

查看:28
本文介绍了从MySQL使用PHP删除逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列名fighters,其中包括mysql中的某些值,例如

i have a column name fighters which include some value in mysql such as,

|战士|

|岩石|

|约翰·塞纳(John Cena)|

| John Cena, |

|UnderTaker,|

| UnderTaker,|

所以,我想当我在浏览器中显示它时,它应该看起来像

So, I want when i Display it in a browser it should appear like

岩石

约翰·塞纳(John Cena)

John Cena

UnderTaker

UnderTaker

我只想使用PHP从数据库中删除逗号

I just want to remove commas from database using PHP

任何帮助将不胜感激..

Any Help will be appreciated..

推荐答案

给予

str_replace(",","",$str);

这篇关于从MySQL使用PHP删除逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆