mb_ereg_search_setpos

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

mb_ereg_search_setposSet start point of next regular expression match

說明

mb_ereg_search_setpos(int $offset): bool

mb_ereg_search_setpos() sets the starting point of a match for mb_ereg_search().

參數(shù)

offset

The position to set. If it is negative, it counts from the end of the string.

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

更新日志

版本 說明
7.1.0 Support for negative offsets has been added.

注釋

注意:

mb_regex_encoding() 指定的內(nèi)部編碼或字符編碼將會(huì)當(dāng)作此函數(shù)用的字符編碼。

參見