How can I write this sing (') in my php script?
Funny or stupid question, but I'm not PHP programmer, so I hope that someone can help me. I need to insert this sign (') in one of my PHP codes. To be more specific I need for example "rock'n roll" but when I add (') than i get some errors, so i thing that there can be some "code'...
Thanks. |
Ok, I keep trying to put this but it always parses the code. If you use the following five characters, it should give you a single quote
& # 3 9 ; You do not want spaces between them, but if I write those 5 characters together, this html forum renderes it as the ' rather than the text I want it be show up as. |
Yes, that works.
Thanks. Quote:
|
I think the print "rock'n roll"; should work but if not you can also use this:
PHP Code:
\' = ' \" = " etc... |
This
PHP Code:
PHP Code:
|
Hm... good to know. I don't really know the whys just I know what is working what is not. This is the backdrow of self-education. (^_^) With a tacher I probably knew the difference.
|
All times are GMT -5. The time now is 08:33 PM. |