I am getting value from modal which contains array as well like this:
<?php var_dump( $myaccount);?>
Result:
array (size=1) 0 => object(stdClass)[28]
public 'daysselected' => string '["Monday","Tuesday"]'
public 'due' => string '["2017-06-12","2017-06-13"]'
I am trying to access Monday as single and similarly the date. How can i do so?
I am trying this:
if(!empty($myaccount)){
foreach($myaccount as $it){
echo $it->daysselected[0];//i get '[' only
}
}