Table Of Contents

m

全干工程师

preg_match(): Compilation failed: character value in \x{} or \o{} is too large at offset xx on line number xx

preg_match在匹配UTF-8时不加u修饰符会发出此警告。

<?php

preg_match("/^\x{3010}(.*)\x{3011}/u", $content, $matches);

var_dump($matches);

留言