overloading var_export() to customize
I’ve a persistent library that should store objects in a database. So var_export()
should store the type, pk, and db-version only. At the reverse it should recreated the object from the database using the key. In other words: