$p = "|<[^>]+>(.*?)</[^>]+>|i";
输出结果:
Array
(
[0] => Array
(
[0] => <b>example: </b>
[1] => <div align=left>this is a test</div>
)
[1] => Array
(
[0] => example:
[1] => this is a test
)
)
关于上面的那个匹配过程是如何形成的,还有‘|’的用法
输出结果:
Array
(
[0] => Array
(
[0] => <b>example: </b>
[1] => <div align=left>this is a test</div>
)
[1] => Array
(
[0] => example:
[1] => this is a test
)
)
关于上面的那个匹配过程是如何形成的,还有‘|’的用法
2019-01-28
举报