PHP Open Source Forum-youyax V11 version announced ~ Unlimited Building

Source: Internet
Author: User
PHP Open Source Forum--youyax V11 Release ~ Unlimited Building ~
This post was last edited by xjl756425616 on 2013-03-08 13:19:16

Look at the picture




The building function does not affect the contents of the database, but only when it is displayed, it is optimized, 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& Gt [^<]+) (<\/fieldset>[^<]+) {1,} (<\/fieldset>[^<]+) (<\/fieldset>[^<]+) (<\/ fieldset>[^<]+) (<\/fieldset>)/is "," \\1\\2\\3\\4 some floors have been hidden \\6\\8\\9\\10\\11\\12 ", $v [' Content1 ']);
}
$result _data[]= $v;
}
$this->assign (' data1 ', $result _data); <> <> <> <> <> <> c27>


PS: This implementation of the code itself will not be, or from the last time I asked a question, csdn have a lot of masters Ah ~

Common Progress ~


------Solution--------------------
Common progress
------Solution--------------------
Good function, beautify the visual effect better!
  • 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.