note 43361 added to function.wordwrap
| From: | jeremy at optikalworld dot com | Date: | Fri, 18 Jun 2004 19:30:32 +0000 |
| Subject: | note 43361 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71297@lists.php.net to get a copy of this message | ||
I am using php to create dynamic pdf files. How can i get the output of a variable to wrap using
the same method/style as wordwrap() in a pdf file?
---code snippet---
<?php
$cdesc = "a really long string"
$fdesc = wordwrap( $cdesc, 80 );
pdf_show_xy($pdf, $fdesc, 120, 600);
?>
But it still outputs the string on a single line that runs clear off the page.
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43361
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43361&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43361&report=yes
Search -- http://master.php.net/manage/user-notes.php