Jump to content

Proper way to clear out/flush an array?


galvin

Recommended Posts

What is the PROPER way to clear out an array? 

 

I have an array getting created as part of a loop process, and for each loop, I want the array to be emptied and start from scratch?

 

I googled it and see some ways but the people offering the solutions don't seem too sure of themselves, so I just want to know if there is one, widely accepted and proper/efficient way to do this?

Link to comment
https://forums.phpfreaks.com/topic/225587-proper-way-to-clear-outflush-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.