In the following code the variable does not seem to be getting set. Seems simple enough but for some reason this is vexing me.
function teasertext($string){ $tstring = ""; if (strlen($string)>9){ $tstring .= substr($string,0,9) . "...."; } else { $tstring .= $string; } } print $tstring; return $tstring;
printandreturnstatements are outside of the function block)...