Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

How can I add text to an image?

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

Post New Answer

More PHP Interview Questions

What is the scope of a variable defined in a function?

0 Answers  

how to extract month from given date by using string functions?

3 Answers  

Which function is used in php to search a particular value in an array?

0 Answers  

how can i get USA time using php...

1 Answers  

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...

2 Answers  

How will you calculate days between two dates in PHP?

0 Answers  

What are the two types of variables?

0 Answers  

What is inheritance in php? How many types of inheritance supports php?

0 Answers  

What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  

How can we check the value of a given variable is alphanumeric?

0 Answers  

What is htaccess? Why do we use this and where?

0 Answers  

How to insert an new array element in array?

0 Answers