+ 2

Can anyone explain proper use of single and double quotes with backslash in php.

22nd Feb 2019, 2:08 AM
radhika jindal
radhika jindal - avatar
2 odpowiedzi
+ 3
If you put a quote in a string, then the compiler will think that it’s the end of the string. So you can ‘escape’ the character by putting a backslash behind it, which will tell the compiler that it’s a quote in a string.
22nd Feb 2019, 5:11 AM
Rowsej
Rowsej - avatar
+ 2
Ok thanks
22nd Feb 2019, 6:21 AM
radhika jindal
radhika jindal - avatar