Try
PHP Code:
temp.foo = clientr.fish.(@fishtype[i]);
AND, if you are trying to then update the original clientr value with temp.foo, you will not be able to because it is a copy, not a reference.
The only things GS2 will reference are objects and arrays.