I'm trying to write a PHP statement that solves the following. My attempt is not taking. Basically I have coded items regarding heating types. I need a PHP statement that says If x = 356 then display Gas if x = 357 then display Oil if x = 358 display coal, etc, etc. Here is what I have started with and I'm a total newbie at php, please help!
    <?php
function heatfuel_function( $heatfuel ) {
if ( heatfuel = "543" ) {
    echo "Electric";
}
if (heatfuel = "544") {
    echo "LP Gas";
}
if (heatfuel = "545") {
    echo "Natural Gas";
}
if (heatfuel = "546") {
    echo "Natural Available Gas";
}
if (heatfuel = "550") {
    echo "Multi Fuel";
}
if (heatfuel = "552") {
    echo "Oil Fuel";
}
if (heatfuel = "556") {
    echo "Wood Fuel";
}
} else {
    echo "";
}
?>
 
    