Why do two array values look the same, but don't evaluate as equal?
- by kevtrout
When I compare two array values I see two strings that look the same. php doesn't agree.
$array1 = ('address'=>'32 Winthrop Street','state'=>'NY');
$array2 = ('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?