$id = 12835151; $arr[$id] = Get_thing_with_id( $id );
Obviously, I'd agree that a map/associative array/dict/etc is a better choice here; I'm just annoyed about the name.