PHP open-source forum-YouYaXV11 released ~ Unlimited building-php Tutorial

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.