Apply depth transparency to array object
Use the camera data node and a color ramp to control the transparency.





Note that you might need to increase the transparency bounce settings for the  Light Paths to prevent artifacts.



Or you might want to try controlling the transparency through the Ray length on the Light Path: