Typically, I\'ll write a function like so:
function alertClass($field,$full=false){ global $formErrors; $html = $full ? \' class=\"alert\"\' : \' alert\';
for example when you echo the text out of your function just like this...
function yourStatus(){ echo ' Done'; } echo 'Status ='. yourStatus();
your output will look like this
"DoneStatus ="
instead of
"Status = Done"
cheers