Here are three short ways to say it:
- Porcupines have sharp quills that protect them, and some hollow quills help them float.
- Sharp quills keep porcupines safe; some hollow ones are like straws and help them float.
- Porcupine quills are sharp for protection, and the hollow ones can help the porcupine float in water.