You daily energy intake is $result kalories";」取代顏色即可。"/> You daily energy intake is $result kalories";」取代顏色即可。">
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 "<font color=green>You daily energy intake is $result kalories</font>";更多相關知識,請造訪
PHP中文網!
以上是php如何替換顏色的詳細內容。更多資訊請關注PHP中文網其他相關文章!