Home >Backend Development >PHP Tutorial >分页-PHP正则截取问题,截取第N-N+1个#号之间的数据

分页-PHP正则截取问题,截取第N-N+1个#号之间的数据

WBOY
WBOYOriginal
2016-06-02 11:34:02913browse

正则分页php

$text = "asdfs#sdfj#HELLO123#lj#lj##jlkj#lkjl#lll#lll##jjjjj#";
截取第2-3#之间的数据 HELLO123
截取第N-N+1 #之间的数据,这个N为是已知数

//分页

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