开发者

Get line-break working using PHP GD2 and a <textarea>

开发者 https://www.devze.com 2023-01-20 07:43 出处:网络
I\'m trying to figure out how I can开发者_运维问答 put text including line-break from a textarea on an image generated using GD2 library. I tried \\n and , nothing...

I'm trying to figure out how I can开发者_运维问答 put text including line-break from a textarea on an image generated using GD2 library. I tried \n and

, nothing...

It's a stupid question but I can't find this information on the web.

Thanks!


GD doesn't support text formatting of that sort. You'll have to manually break the string into multiple lines,and place each one seperately.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号