How do you remove this warning?
Strict Standards: Only variables should be passed by reference in
I have code that gets unique values from a multidimensional array and then gets the last index.
$catchColors[]= array();
for ($i = 0; $i < $totalRows; $i++) {
$catchColors[$i] = $postData[$i]['ColorID'];
}
$result = array_unique($catchColors);
print_r($result);
print end(array_keys($result));
it still returns the value, but how do I remove the warning?