Want to use a Magento collection multiple times within the same function? There are a few ways to do this, but here's how by using clear() + reset().
If you want to know the 2 other ways you can reuse a collection, read the blog post at https://m.academy/blog/multiple-colle...
#magento #magento2 #php