$first = 'test - yes';
$second = 'yes';
$third = str_replace("test -", "", $first);
if ($second == $third) {
echo 'yee';
echo '<br>';
}
echo $first;
echo '<br>';
echo $second;
echo '<br>';
echo $third;
I have 3 variables. First variable has str - test - yes, second - yes and third is replaced with first with removed "test -"
So when i broughted all 3 variables i had this result "test - yes; yes; yes;" Second and third variable are the same, and when i check if ($second == $third) { echo 'yee'; } it doesnt echo it; Why