Forum Moderators: coopster
$name = array_shift(array_values(array_diff($candidates, $conflicts)));
$vettedCandidates = array_values(array_diff($candidates, $conflicts));
$name = array_shift($vettedCandidates);
- the leading ampersand there means it's a reference rather than a typical variable. A function call cannot be a reference.array_shift ( array &$array )