Answer the question
In order to leave comments, you need to log in
Why are two strings not equal?
Friends. I'm parsing information. In the information processing algorithm, you need to compare the names:
I compare
$mysername = trim(stripslashes(strtolower($myrow2['origname'])));
$parssername = trim(stripslashes(strtolower($origname['1'])));
if ($mysername == $parssername) {
echo 333;
}
Answer the question
In order to leave comments, you need to log in
$a=trim(stripslashes(strtolower($myrow2['origname'])));
$b=trim(stripslashes(strtolower($origname['1'])));
echo htmlspecialchars_decode($a) == htmlspecialchars_decode($b);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question