I want to cache an array which has also closures.
I've tried with:
What else to do for caching array containing also closures ?
Closures in PHP can not be serialized "from the box" hence array with closures too. You can only use 3rd party ways/libraries to reach this. Discussed here: Serializing anonymous functions in php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With