Hi guys,
It's a simple question really (just getting used to php - actionscript 3.0 developer!) but I need to know how I can pass a CSS class into the arguments in a PHP function, then have it apply that style to text in html. What I have so far is:
<?php
function addText($text,$class) {
?>
<div class= $class >
<p><?php echo $text ?></p>
</div>
<?php
}
?>
But it doesn't work, the <div class = $class > should be different I think. Anybody got a solution?