PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 11, 2022

[FIXED] how to show square root symbol in php code using gd library?

 October 11, 2022     gd, php     No comments   

Issue

I am now dealing with a mathematical problem with my codes. I have second degree equation , for example , ax^2+bx+c=z .

If we have to find the value of 'X', we have the eqution , x=(-b +/- root(b^2-4ac))/2a.

The main headache is that i've to show the square root symbol in image using gd library. But i dont know how to show this equation using proper mathematical(i mean using square root symbol etc.) in the image using gd functions.

Is there a way for doing it?


Solution

Should work in imagettftext - √. To do it Mac you hold Alt (option) + J

You can use an image (BLOB) from a mysql database as wellas well as string data and it will auto detect it and creates a GD resource based on it. The image has to be supported but i'm sure the square root symbol is. Good luck I hope this helped.



Answered By - Wideload Shipping
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing