P. leucotaenia lives in shallow lagoons and on coastal reefs from the Philippines to the Solomon Islands. It is often found in schools under ledges or around coral heads. These schools swim in such tight formations, they resemble a single organism. Occasionally, the species is found in the aquarium trade, where it is known for disrupting all but the most stable structures.
DNA analyses show this species to be neither a blenny nor a goby, but part of a separate fish family, the Pholidichthyidae.
In the Solomon Islands, researchers under Eugenie Clark found juveniles emerging from holes in the seafloor and adjoining coral reefs. By day, these juveniles swim up to 165 feet (50 m) from their home burrows to feed on plankton. At the end of the day, all returned to the burrows, remarkable and unique behaviour for larval fish.