Looks like it should work. The only problem would be if there was a string of more than 15 characters with no spaces (such as a URL). If you want to force that "word" to break, then add the optional 4th parameter:
echo wordwrap($str,15,"<br />\n", TRUE);