I need to display mathematical function formulas. For this, how can i echo those mathematical symbols using php?
Suppose i have a textbox on webpage, if someone types something there, then the special unicode characters like alpha, beta, summation or my local language characters will be typed there, can i do something with php to do this?
You can use html entity codes to show these symbols. eg:
<div>
Σ
α
</div>
Running example here : http://jsfiddle.net/7QBaZ/
Chart of html entities: http://htmlhelp.com/reference/html40/entities/symbols.html
However, to show complex formulae,tis is not as easy as putting HTML entities to show mathematical symbols. You can find some help here to get started :
From what I understand, yes. The best way I know of is if you echo their Octal or Hexadecimal values.
ie.. echo ("Octal char = \062 and Hex char = \x32");
Encode your document in UTF-8 and insert the appropriate Unicode characters: α, β, ∑...
echo "α, β, ∑";
You can use hexadecimal codes to output the symbols.
http://tlt.its.psu.edu/suggestions/international/bylanguage/greekchart.html
http://tlt.its.psu.edu/suggestions/international/bylanguage/mathchart.html