Convertion to/from arrays: Convertion between PHP arrays and records objects
Objects in Porte can easily be converting to an array or be initialized from an array. Conversions are handled by 2 methods which are "toArray" and "fromArray". Using those functions can become very useful while exporting and importing to/from XML or JSON as examples.
PHP array conversion methods
- Method "fromArray"
- Method "toArray"