Theoretically, two compare two strings we would say:
if ($string1==$string2) {
}
So, if we know that $string1 is indeed a string, why doesn't this work:
if ($string1=="text") {
}
In addition, why doesn't this work:
$string2="text";
if ($string1==$string2) {
}
Is this something to do with variable definitions?
Thanks for any help in advance!