Echo

i want to write this word in echo:
Collega’s

but when i try echo ‘collega’s’; it fails because of the ’ in the word… how do i solve this?

try:
[php]
echo “colega’s”;
[/php]

ty :slight_smile:

If you put a backslash in the echo with double quotes it will echo the backslash as well.
If you use double quotes then it will use the single quote properly.

[php]echo “colega’s”; [/php]

if you use single quotes and a backslash then it will work the way you want it to.
[php]echo ‘colega’s’; [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service