Home >Backend Development >PHP Tutorial >php 的正则中结束符 $ 问题

php 的正则中结束符 $ 问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:27:321449browse

正则php

$str= 'abc
def
ijk' ;
preg_match('/f$/m',$str,$arr);
为什么没有结果呢?修正符m不是把字符串看做多行吗

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn