note 100744 added to function.imagestring

From: Date: Thu, 04 Nov 2010 04:42:18 +0000
Subject: note 100744 added to function.imagestring
Groups: php.notes 
Request: Send a blank email to php-notes+get-173738@lists.php.net to get a copy of this message
I realized that imagestring does not allow multiple lines ( \r\n ) so I found for multiple lines you need to imagestring each line. Is this correct? it works, but am I missing anything? $string = "Hello,\nworld!"; $stringarray = explode("\n",$string); for ($i=0; $i < count($stringarray); $i++) { imagestring($im, 4, 1, 1+$y, $stringarray[$i], $text_color); $y += imagefontheight(4); } ---- Server IP: 216.235.13.26 Probable Submitter: 174.5.119.59 ---- Manual Page -- http://www.php.net/manual/en/function.imagestring.php Edit -- https://master.php.net/note/edit/100744 Del: integrated -- https://master.php.net/note/delete/100744/integrated Del: useless -- https://master.php.net/note/delete/100744/useless Del: bad code -- https://master.php.net/note/delete/100744/bad+code Del: spam -- https://master.php.net/note/delete/100744/spam Del: non-english -- https://master.php.net/note/delete/100744/non-english Del: in docs -- https://master.php.net/note/delete/100744/in+docs Del: other reasons-- https://master.php.net/note/delete/100744 Reject -- https://master.php.net/note/reject/100744 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173738) next »