当前位置:主页 > 建站教程 > 建站技术 >

php替换多个字符串str_replace函数

发布时间:2018-07-03 来源:互联网 浏览: 关键词:str_replace 

php替换多个字符串str_replace函数

echostr_replace(array("m","i"),array("n","z"),"my name is jim!")

echostr_replace(array('m','i'),'n',"my name is jim!");

<?php
$vowels =array("a","e","i","o","u","A","E","I","O","U");
      $onlyconsonants = str_replace($vowels,"","Hello World of PHP");
      echo$onlyconsonants;

魔酷阁-专业织梦模板下载平台,转载请注明出处:https://www.mokuge.com/webdesign/2081.html
责任编辑:MOKUGE

相关文章

    共有人阅读,期待你的评论!评论
    Top