Share variables/memory between all PHP processes
问题 Is it possible to share variables and arrays between all PHP processes without duplicating them ? Using memcached, I think PHP duplicates the used memory: $array = $memcache->get('array'); $array will contain a copy from memcached. So my idea is, there could be a static variable that was already defined, and shared between all processes. 回答1: By default its simply not possible. Every solution will always copy the content into the current scope, because if not, there is no way to access it. I