Thoughts: Functions & Arrays

Thought of the day...

Do not reset your passed arrays inside of functions.

function setWhere(&$values, &$fy_array) {
$addWhere = array();
$values = array(); // <--- Bad, bad, BAD!

Do stuff here...

return($addWhere);
}

Ahh the time wasted before I spotted this.

/sigh