How can I add text to an image?
Answer / jude jeevanraj.p
There is a built in function to add text to an image. The
tricky bit is knowing the parameters.
It is not worth learning these, therefore take note of them
from an existing example or the manual each time that you
need to write text with PHP!
The function used to do this using TrueType fonts is called
imagettftext and take a deep breath as here come the
array imagettftext ( resource $image, float $size, float
$angle, int $x, int $y, int $color, string $fontfile,
string $text )
|Is This Answer Correct ?||4 Yes||1 No|
What is the scope of a variable defined in a function?
how to extract month from given date by using string functions?
Which function is used in php to search a particular value in an array?
how can i get USA time using php...
what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_dump()function in php,syntax of ternary operator()in php,difference between drop a table and truncate a table...
How will you calculate days between two dates in PHP?
What are the two types of variables?
What is inheritance in php? How many types of inheritance supports php?
What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?
How can we check the value of a given variable is alphanumeric?
What is htaccess? Why do we use this and where?
How to insert an new array element in array?