|
PHP5中文手册
substr_replace(PHP 4, PHP 5) substr_replace — Replace text within a portion of a string 说明
mixed substr_replace
( mixed $string
, string $replacement
, int $start
[, int $length
] )
substr_replace() replaces a copy of string delimited by the start and (optionally) length parameters with the string given in replacement . 参数
返回值The result string is returned. If string is an array then array is returned. 范例
Example#1 substr_replace() example
<?php 注释
|