I'm trying to run what I thought was a pretty basic function:
function titleprint1() {
if (strlen($titlepost1) < 10) {
return*nl2br(substr($titlepost1, 0, 10))*.*'...';
}
else {
return*nl2br($titlepost1);
}
}
When doing so I get the following error:
Parse error: syntax error, unexpected T_STRING in home.php on line 156
line 156 is this line from the code:
return*nl2br(substr($titlepost1, 0, 10))*.*'...';
EDIT: I noticed that asterisks were placed where I had spaces. In the actual code of course, there are no asterisks.