Heim >Backend-Entwicklung >PHP-Tutorial >PHP 过滤函数 逗号,在线等【急】

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:13:10802Durchsuche

PHP 函数



如题:

PHP: 

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


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

例如:问题 关键字 标题 echo





回复讨论(解决方案)

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

str_replace()

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn