<?php
foreach($pricelistline as $value) {
$e = explode(",",$value);
if ($e[0]) {
echo "<li>\n<img width=\"24\" height=\"24\" src=\"features_icons/" . $e[0] . ".png\" alt=\"\" class=\"\" />\n<span>" . str_replace("-", " ", ucfirst($e[0])) . "</span>\n</li>\n";
}
}
?>
还有这个_
<?php
foreach($pricelistline as $value) {
$e = explode(",",$value);
if ($e[0]) {
?>
<li>
<img width="24" height="24" src="features_icons<?php echo $e[0]; ?>.png" alt="" class="" />
<span><?php echo str_replace("-", " ", ucfirst($e[0])); ?></span>
</li>
<?php
}
}
?>
一般来说,性能方面有什么不同吗?速度和负载有区别吗?
多次退出和进入php会降低性能吗?<?php >
哪一个被认为是更好的做法?
1 个 echo 实例与 2 个实例之间有什么区别吗?