[Solved] then mistake at function PHP


Change to

    function foo($string, $color)
{
    echo '<p style="color: '.$color.';">'.$string.'</p>';

}
foo("example", "#FF00AE");

Need to be a string and start with # hexdecimal color symbol also your echo had a wrong chart ; I fixed it

5

solved then mistake at function PHP