How do I print this returned value in php?
<pre><code>function printmsg($string,$type) {//type 1 = green, type 2 = red
    if($type == 1) $msg = "&lt;p style=\"color:#00C5CD\"&gt;".$string."&lt;/p&gt;";
    if($type == 2) $msg = "&lt;p style=\"color:#f7110b\"&gt;".$string."&lt;/p&gt;";
    return $msg;
}
printmsg("hello",1);

//lots of other code
print($msg);
</code></pre>

<p>Im trying to get my returned value to print but it never seems to work. </p>
