<?php
$str = "1,5";
$replacements = explode(',', $str); $base = array('1'=>'Bread','5'=>'Butter');
return $base[$a];
}, $replacements);
PD9waHAKJHN0ciA9ICIxLDUiOwokcmVwbGFjZW1lbnRzID0gZXhwbG9kZSgnLCcsICRzdHIpOyAgICAgICAgIAokYmFzZSA9IGFycmF5KCcxJz0+J0JyZWFkJywnNSc9PidCdXR0ZXInKTsgCgokYmFza2V0ID0gYXJyYXlfbWFwKGZ1bmN0aW9uKCRhKSB1c2UoJGJhc2UpewogICAgcmV0dXJuICRiYXNlWyRhXTsKfSwgJHJlcGxhY2VtZW50cyk7CgpwcmludF9yKCRiYXNrZXQpOw==