【发布时间】:2010-10-18 18:34:31
【问题描述】:
我的做法:
<?
switch($id)
{
case 1:
?>
a lots of html stuff goes here...
<?
break;
case 2:
?>
a lots of html stuff goes here2...
<?
break;
}
?>
有什么方法可以让这件事变得更漂亮?我的意思是更具可读性或其他什么?我真的很感激。 (还没学聪明呢……)
【问题讨论】:
标签: php html coding-style