Answer the question
In order to leave comments, you need to log in
How to reveal hidden characters in a string and remove them?
Friends. I compare 2 lines:
1st - the line taken from my DB.
2nd - line parsed from another site via curl.
In appearance, they are identical.
But when compared, they are not equal.
$nowtitle = mb_strtolower(stripslashes(trim($tt['title'])), 'cp1251');
$kptitle = mb_strtolower(stripslashes($kpdata['sertitle']), 'cp1251');
var_dump($nowtitle);
var_dump($kptitle);
string(8) "лагерь х" string(13) "лагерь х"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question