|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-29 08:08 UTC] tony2001@php.net
[2006-07-07 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 05:00:01 2025 UTC |
Description: ------------ I put some letters into an array I then want to get some random letters so I use rand to selet a number between 0 and 25 I then put them together like this $letters[$ran_num]; this works fine. I want 5 random letters so I do it the above useing $ran_num, $ran_num2 ect... I then put $letters[$ran_num], $letters[$ran_num2] into an array called $text. Now on my image I want each random letter to appear I also want a text string of the random letters so I do a foreach($text as $g){$string .= $g; <more code to write letter to image>} teh text on the image is differant than the text in teh string and I'm writeing $g to teh image. Reproduce code: --------------- http://thephpguy.com/gd_bug.zip Requires .gdf font (one font provided) Expected result: ---------------- Letters on image should be the same as the string. Actual result: -------------- Random letters on the image string is correct.