(PHP 4 >= 4.2.0, PHP 5, PHP 7)
mb_ereg_search_setpos — Set start point of next regular expression match
$position
)mb_ereg_search_setpos() sets the starting point of a match for mb_ereg_search().
position
The position to set. If it is negative, it counts from the end of the string.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
版本 | 说明 |
---|---|
7.1.0 |
Support for negative position s has been added.
|
Note:
mb_regex_encoding() 指定的内部编码或字符编码将会当作此函数用的字符编码。