for中再for,大侠们教下。
$p='1$a$aa#2$bb$b#3$ccc#4$dddd$ddd';
global $a,$k;
$c = explode('#',$p);
for($i=0;$i
$d = explode('$',$c[$i]);
for($j=0;$j $a.= '
$p='1$a$aa#2$bb$b#3$ccc#4$dddd$ddd'; global $a,$k; $c = explode('#',$p); for($i=0;$i<count explode for>'.$d[$j].''; } $k.='<ul>'.$a.'</ul>'.PHP_EOL; //注意这里 } echo "$k"; <div class="clear"> </div></count>