When I compare two array values I see two strings that look the same. php doesn't agree.
$array1 = array('address'=>'32 Winthrop Street','state'=>'NY');
$array2 = array('address'=>'32 Winthrop Street');
$results = array_diff_assoc($array1, $array2);
var_dump($results)
//echos ['address'] => string(18) "32 Winthrop Street" ['state']=>'NY'
Why is this?
EDIT Be advised that this isn't the actual code I'm testing, I've simplified code to illustrate my question, which is about strings being equal, not whether or not this code will run.