Little questions on PHP string syntax.
$var = "<img width="5" src="/blah.png">"; is bad?
$var = '<img width="5" src="/blah.png">'; is good?
$var = "<img width=\"5\" src=\"/blah.png\">"; is good?
$var = '<img width=\"5\" src=\"/blah.png\">'; is bad?
$var = "<img width='5' src='/blah.png'>"; is good?
$var = "<img width=\'5\' src=\'/blah.png\'>"; is bad?
$var = "start " . $var . " end"; is good?
If someone could clarify this that would be great. Yes they are all different.
|