php. dictionary data structure, (integer, string) as a key -
in python dictionary can use tuples keys. can use key next combination: (integer, string). want same in php. standard php array can use strings or integers. splobjectstorage uses objects key.
how can same functionality in php?
the simple answer cannot. functionally equivalent though should simple:
$array["$int,$str"] or maybe multi-dimensional array:
$array[$int][$str]
Comments
Post a Comment