Forgive me for posting such a stupid question, but am I correct in thinking this array_key_exists check is pointless:
foreach ($arr as $key => $value) {
if (blah_blah($key) && array_key_exists($key, $arr)) {
$this->$key = $value;
}
}
Since we are doing a foreach loop on $arr, array_key_exists is ALWAYS AND FOREVER going to return TRUE, yes?
My faculties are much diminished today due to too much time in front of the workstation.