Add to_indexed_array function
Add to_indexed_array function

The to_indexed_array function takes an object and an array of property names and creates an array indexed by those property names.
The $reference argument is optional, if true the array elements will be assigned by reference.
thomasio101/tomlib-php