PHP has its own memory management functions which adds a safety net in case you forget to free things. It also helps catch overflows and other memory-related issues. The functions are exactly like their typical C counterparts: