PHP open-source forum-YouYaXV11 released ~ Unlimited building ~ At last, this post was edited by xjl756213616 from 2013-03-0813: 19: 16. The image building feature does not affect the content in the database. it is only optimized when it is displayed, operation data is not affected. Test Post address: www. youyax. comforumContent-index-id-PHP Open Source Forum -- YouYaX V11 Release ~ Unlimited building ~
This post was last edited by xjl756213616 at 13:19:16
View images
The building-up function does not affect the content in the database. it only needs to be optimized when it is displayed, and the operation data is not affected.
Test Post address:
Http://www.youyax.com/forum/Content-index-id-4261.shtml
Implementation code:
$ Result_data = array ();
Foreach ($ results as $ v ){
$ Num = preg_match_all ("/
If ($ num> 5 ){
$ V ['content1'] = preg_replace ("/(
[^ <] + <\/Legend> \ s *)(
[^ <] + <\/Legend> \ s *)(
[^ <] + <\/Legend> \ s *)(
[^ <] + <\/Legend> \ s *)(
[^ <] + <\/Legend> \ s *) {1 ,}(
[^ <] + <\/Legend> [^ <] +) (<\/fieldset> [^ <] +) (<\/fieldset> [^ <] +) {1 ,}( <\/fieldset> [^ <] +) (<\/fieldset> [^ <] +) (<\/fieldset> [^ <] +) (<\/fieldset>)/is ", "some floors \ 1 \ 2 \ 3 \ 4 have been hidden \ 6 \ 8 \ 9 \ 10 \ 11 \ 12 ", $ v ['content1']);
}
$ Result_data [] = $ v;
}
$ This-> assign ('data1', $ result_data );
PS: The implementation code won't come from me. it still comes from a question I asked last time. csdn has many experts ~
Common Progress ~
------ Solution --------------------
Common Progress
------ Solution --------------------
Good functions, better visual effects!