limiting text output

Does anybody know how to modify this to limit the text output of title to say 20 characters?

$output.=$loop[$x][title] ."<br />";

Wordwrap :)
Or perhaps str_split might suit your needs too.

Sponsor our Newsletter | Privacy Policy | Terms of Service