Tra i commenti del manuale ufficiale puoi trovare molti esempi:

http://www.php.net/wordwrap