PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I was wondering if there's an easy way to empty an array. I've got an array already full of values, and I want to remove all index/value associations so the array becomes empty. Due to the type flexibility in PHP, I've managed to do a workaround by just setting the array to = ''. I know it's extremely ugly, but that's why I'm posing the question here. Thanks in advance for any help/suggestions.