Don’t use ‘
or ’
. Use '
. When declaring a string variable in PHP, you must use '
or "
. Don’t mix and match either.
GOOD
$str="str";
$str = "str";
BAD
$str="str";
1
solved How do I echo exclamation mark in PHP string? [closed]
Don’t use ‘
or ’
. Use '
. When declaring a string variable in PHP, you must use '
or "
. Don’t mix and match either.
GOOD
$str="str";
$str = "str";
BAD
$str="str";
1
solved How do I echo exclamation mark in PHP string? [closed]