Hii,
So, you wanna show the degree symbol “°” in the PHP code. I think it is because of how your file or editor is encoded. For this, you can try the following things:
- With the use of UTF-8 encoding, just save your file. After that, it can show the degree symbol and other special characters.
- Apply UTF-8 encoding in your editor, or you can also use an editor that has UTF-8 by default like Notepad++.
- Use
°
in the place of “°” in your code. So, it will show the degree symbol in any browser, with no worry about the encoding.
I hope it will surely work for you. Good Luck!