echo "<span style = 'font-color: #ff0000'> Movie List for {$key} 2013 </span>";
Variables expand only in double quotation marks, not in single quotation marks. Since the above uses double quotes for a PHP string, I switched to single quotes for inline HTML to avoid having to avoid quotes.
Another problem with your code is that the <style> tags are for inputting CSS blocks, and not for styling individual elements. To create an element, you need an element tag with the style attribute; <span> is the simplest element - it has no native formatting, it just serves as a place to attach attributes.
Another popular way to write is string concatenation:
echo '<span style = "font-color: #ff0000"> Movie List for ' . $key . ' 2013 </span>';
source share