最佳方式 [英] Optimum way
问题描述
替换字符串xxx的最佳代码是什么?与yyyyyyy相关在
一个文件? (也许有str_replace函数?)
谢谢,
鲍里斯萨维
< blockquote>
" Boris?avc" <博******** @ odis-info.com>在消息中写道
新闻:7s *************** @ news.siol.net ...
什么是替换字符串xxx的最佳代码与yyyyyyy相关
在文件中? (也许有str_replace函数?)
谢谢,
Boris Savc
但是从我能找到的地方文字开始指向我可以找到文本的地方
STOP只有!
感谢大家,
鲍里斯萨克
鲍里斯? avc写道:" Boris?avc" <博******** @ odis-info.com>在消息中写道替换字符串xxx的最佳代码是什么?在文件中使用yyyyyyy
? (也许是str_replace函数?)
但是从我可以找到文本START的位置开始指向我可以找到文本的地方
停止只有!
我可以使用
http://www.php.net/strpos
http://www.php.net/substr
http ://www.php.net/str_replace
<?php
//找到第一个START在
内容
What would be the optimum code for replacing string "xxx" with "yyyyyyy" in
a file? (maybe with str_replace function?)
Thanks,
Boris Savc
"Boris ?avc" <bo********@odis-info.com> wrote in message
news:7s***************@news.siol.net...What would be the optimum code for replacing string "xxx" with "yyyyyyy" in a file? (maybe with str_replace function?)
Thanks,
Boris Savc
but from point where I can find text "START" to point where I can find text
"STOP" only!
Thanks to you all,
Boris Savc
Boris ?avc wrote:"Boris ?avc" <bo********@odis-info.com> wrote in messageWhat would be the optimum code for replacing string "xxx" with "yyyyyyy"
in a file? (maybe with str_replace function?)but from point where I can find text "START" to point where I can find text
"STOP" only!
I might do that using
http://www.php.net/strpos
http://www.php.net/substr
http://www.php.net/str_replace
<?php
// find the first "START" in
contents
这篇关于最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!