This is how looks my var_dump variable.
object(stdClass)#879 (3) {
["row"]=>
array(1) {
["option_id"]=>
string(2) "20"
}
["rows"]=>
array(1) {
[0]=>
array(1) {
["option_id"]=>
string(2) "20"
}
}
["num_rows"]=>
int(1)
}
I need to get option_id in this case option_id = 20
e.g. $option_id = 20
When I try this $variable['row']['option_id'] I get null value.
$variable->row->option_id