in reply to Accesing the array elements via indexes which are inserted into it by push
yes you can, but instead of list[5](which will end up in error) you need to treat it as a scalar $list[5]