I am scraping the DOM of a static site with PHP and pulling out specific bit\'s of data so I can put stuff into a database.
For this example I am storing the inner H
You should as question why this one happens
string(45) "Description" string(11) "Description"
Second one is 11 chars, first one is 45! Why? So there are some hidden (not showed) characters\symbols. That's why this strings not equal.
Try this one Remove control characters from php String