PHP: String reference manager

I recently had to deal with very many strings where most of them were equal. So i wrote a StringContainer to manage these strings by reference, so that equal strings are just once in memory and their reference is used outside.

Check out the class which is using a hashmap to manage very many string references.

Comments are closed.