PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is probably a very stupid question, but I can't seem to find an answer. How do I escape a $ within a string?
Example: "Hello$There"
This is correctly being interpreted as the string "Hello" followed by the variable $There. However, I'd like to escape the $ so that I can see if a user has entered any non-alphanumeric characters into a text box - in this case, the $. How is this done?