-3

In PHP there is a difference:

$var='text';
'$var' → $var
"$var" → text

In some other languages:

'c' → single char
"string" → multiple chars

and in Python?

derich
  • 181
  • 1
  • 1
  • 11
  • @heinst, I don't agree that this is a duplicate. The referenced question asks if there is a stylistic difference, this question appears to be asking if there is a semantic difference. – Duncan Aug 12 '15 at 15:07
  • Those answers refer to the Docs that say there is no difference, that it's all style @Duncan – heinst Aug 12 '15 at 15:09
  • 3
    @Duncan I think it is very clear from the numerous answers in the other link that there is no semantic difference between the two – Cory Kramer Aug 12 '15 at 15:09

1 Answers1

2

There is no difference whatsoever, it is just a style preference.

heinst
  • 8,520
  • 7
  • 41
  • 77