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

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

WBOY
Release: 2016-06-23 14:13:10
Original
766 people have browsed it

PHP 函数



如题:

PHP: 

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


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

例如:问题 关键字 标题 echo





回复讨论(解决方案)

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

str_replace()

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template