comparing strings that contain line breaks
Posted on 2016-11-04
Hi - I am trying to compare two strings, they are identical, the only difference being that I am retrieving one from the database, and another from a text control. Although they look the same when they are outputted to the screen, and the text within the source code is exactly the same, they are not evaluating as the same when using '==' or php's strcmp function.
string_fromdatabase != string_fromcontrol (i.e. post array)
123 Springfield Avenue