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!