note 100744 rejected from function.imagestring by danbrown

From: Date: Thu, 04 Nov 2010 15:16:43 +0000
Subject: note 100744 rejected from function.imagestring by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173756@lists.php.net to get a copy of this message
Note Submitter: support at whatrhymeswith dot com ---- 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); }

« previous php.notes (#173756) next »