函式:preg_replace() |
preg_replace字串比对剖析并取代。 语法: mixed preg_replace(mixed pattern, mixed replacement, mixed subject); 传回值: 混合型态资料 函式种类: 资料处理
本函式以 pattern 的规则来剖析比对字串 subject,欲取而代之的字串为参数 replacement。传回值为混合型态资料,为取代后的字串结果。
下例传回值为 $startDate = 6/19/1969
|