Home >Backend Development >PHP Tutorial >PHP 过滤函数 逗号,在线等【急】

PHP 过滤函数 逗号,在线等【急】

WBOY
WBOYOriginal
2016-06-23 14:13:10773browse

PHP 函数



如题:

PHP: 

输出的结果: 问题,关键字,标题,echo


怎样把 “逗号” 替换成 “空格”

例如:问题 关键字 标题 echo





回复讨论(解决方案)

echo str_replace(',', ' ', $question['keywords']);

str_replace()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn