Nice idea, but you can solve this problem with fully readable array index names (from property names) by using getobjectvars() from within the class. Just add an export method to the class that returns return get_object_vars($this);. That gives you everything you need. No weird index names or anything like that.
Nice idea, but you can solve this problem with fully readable array index names (from property names) by using getobjectvars() from within the class. Just add an export method to the class that returns
return get_object_vars($this);
. That gives you everything you need. No weird index names or anything like that.