What is the difference between single quotes and double quotation marks in PHP?
Yesterday I was working with a JSON string from google calendar I used explode('\n', ..
to separate a string.
When I used the explode in "Mon Jul 7, 2014 \n\u003cbr"
, with "
it gave me:
array(1) { [0]=> string(25) "Mon Jul 7, 2014 \u003cbr" }
When I used the explode in 'Mon Jul 7, 2014 \n\u003cbr'
, with '
it gave me:
array(2) { [0]=> string(16) "Mon Jul 7, 2014 " [1]=> string(8) "\u003cbr" }
The above is just a practical example that I came across.
Would it be interesting to know the differences in PHP between '
and "
?