Need php help on Image..

They have: 21 posts

Joined: Nov 2006

Hello

Lets say i create an image using php, with the dimentions 250x100px. How can i then write a string onto that image, which will break into new lines, to fit onto it? Using the imagestring() function, it seems to just continue, past the edge of the image.

Thanks for your time

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Use the wordwrap() function.

They have: 140 posts

Joined: Apr 2006

pr0gr4mm3r;212753 wrote: Use the wordwrap() function.

Yep. That should do it.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.