if ($_module[huoqubaobei]!= "4") {$i =-1; $j =0; foreach ($items as $item) {$i + +; $ITEMURL = $uriManager->detailuri ($item); $ITEMPICURL = $item->getpicurl (310); $itemTitle = $item->title; $itemPrice = $item->price; $itemsoldCount = $item->soldcount; Echo '. $itemTitle. ' ¥ '. $itemPrice. ';}} else if ($_module[huoqubaobei]== "4") {$num = count ($SRTPDZ); for ($i =0; $i < $num; $i + +) {echo '. $SRBBBT [$i]. ' ¥ '. $SRBBJG [$i]. ';}}
This place div+css write repeats I want not to repeat how to write. I thought for a couple of hours I couldn't figure out a good way to do this. The main loop is the egg ache.
Reply to discussion (solution)
I don't think we can squeeze much more.
Because the mixed code is too complicated, so the template engine appears
'. $SRBBBT [$i]. '
¥
'. $SRBBJG [$i]. '
';
I don't think that's a repeat, huh?
No one knows????????????????????????????????????
I really want to put the echo out of the code with another function to output.
How to simplify and save a lot of code, that's it.