J
Jeremy Watts
Hi,
When I attempt to overwrite or copy one array to another, using something
like :
array1 = array2;
then the two arrays seem to become 'linked' or associated with eachother, so
that if I made a change to array2 then that same change is also performed on
array1. Is this unique to Java??
I have programmed in PHP in the past and it has not seemed to have done
this. Is there a way to turn this feature off or to get around it somehow.?
What I am after is a way of simply copying one array to another and to have
those two separate arrays to behave independently of eachother.
Thanks
Jeremy
When I attempt to overwrite or copy one array to another, using something
like :
array1 = array2;
then the two arrays seem to become 'linked' or associated with eachother, so
that if I made a change to array2 then that same change is also performed on
array1. Is this unique to Java??
I have programmed in PHP in the past and it has not seemed to have done
this. Is there a way to turn this feature off or to get around it somehow.?
What I am after is a way of simply copying one array to another and to have
those two separate arrays to behave independently of eachother.
Thanks
Jeremy