![]() |
function to split a description into lines of 68 chars long
Im just wondering if anyone can help me out. Iv been trying to figure this out all day.
I have these variables PHP Code:
$description = "Deposit for supplying a DJ for an $occasion on the $date in the $venue"; I want to display the description over 3 or 4 lines in a pdf file like this PHP Code:
Can anyone help me create a function to split the desicprtion into 3 or 4 lines so far I have this code which I know is along the lines that I want. PHP Code:
I know this might be a lot to ask but if anyone can come up with some code I would be greatly appreciated. |
Use wordwrap and explode:
PHP Code:
|
| All times are GMT +1. The time now is 03:03 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.