我如何回应像alpha,beta,summation这样的数学符号? [关闭]

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>
    &#931;
    &#945;
</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 :

http://www.zipcon.net/~swhite/docs/math/math.html

http://www.myphysicslab.com/web_math.html

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 "α, β, ∑";