Reply To: Illegan string offset 'state' error

#10004462
Avatar
Pie Register
Participant

Hi,

Here’s the appropriate way:

if (isset($address_values[‘state’])) {
$selectedoption = $address_values[‘state’];
}else{
$selectedoption = $this->field[‘us_default_state’];
}

Thanks

Checkout
0
PURCHASE NOW