Can anyone tell me how to turn all values of a class object into an array that can be used for an insert?
So for example my object has set values for..
$this->firstname = 'firstname';
$this->middlename = 'middlename';
$this->lastname = 'lastname';
etc etc etc...
What I want to do is pass that information into an insert statement something like this...
while still inside the class. Everything I've tried throws back errors.
Can anyone help?