最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php 正则替换函数 ereg_replace
时间:2010-08-16 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
$num = 'www.111com.net'; $string = "this string has four words. "; $string = ereg_replace ('four', $num, $string); echo $string; $num = '49'; $string = "this string has four words"; $string = ereg_replace ('four', $num, $string); echo $string; $string ="测试用文字"; echo "**********$string********** "; |
-
上一个: php 判断字符串包含指定字符
-
下一个: php文件上传代码
相关文章
- php常用正则函数介绍 12-29
- php开发中常用到正则函数 12-08
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31
- Laravel实现登录跳转功能解析 10-31
- php双向队列解读 10-31