Hello there,
I'm trying to retrieve values from an object. I'm using jFormer for form validation and creation and I have an address component.
Now on submit, I read the address component and input what is read into a variable $address, which returns the following:
print_r($address);
stdClass Object ( [addressLine1] => Test Address [addressLine2] => [city] => Test Road [state] => Test City [zip] => Test Post [country] => MT )
According to the documentation on jformer, the address returns the following:
Value Returned
Object
Keys: { addressLine1, addressLine2, city, state, zip, country }
What I would like is to read each variable separately. I have read lots of php manual sections regarding keys, but haven't found a solution yet ;/
So in terms how would I set ex addressLine1 to the variable $Address1.
Please help. Thanks!