php替换颜色的方法:首先打开相关PHP文件代码;然后使用语句“echo "You daily energy intake is $result kalories";”替换颜色即可。
php内的输出的内容怎么换颜色
问题如:<?php
$weight=$_POST["weight"];
$intensity=$_POST['list'];
$gender=$_POST['gender'];
if ($gender == 1) {
$result = (879 + 10.2 * $weight) * $intensity;
echo "You daily energy intake is $result kalories";
}
else {
$result = (795 + 7.18 * $weight) * $intensity;
echo "You daily energy intake is $result kalories";
}
?>
用以下方法控制颜色:echo "You daily energy intake is $result kalories";
更多相关知识,请访问PHP中文网!