Boleophthalmus boddarti is detritivorous, while others will eat small crabs, insects, snails and even other mudskippers. Digging deep burrows in soft sediments allows the fish to thermoregulate, avoid marine predators during the high tide when the fish and burrow are submerged, and lay their eggs.
Hopefully this helped : )