Mega Code Archive
Add the prefix pts to each array key and then make each variable that results into a reference
21, 'away' => 13);
extract($points, EXTR_REFS|EXTR_PREFIX_ALL, 'pts');
$pts_home -= 4;
$pts_away += 6;
printf("%s
", var_export($points, TRUE));
?>