Issue im having is no matter what method I use to get to this point $result[$k] never equals to $results['value'] but if i literally use the actual an integer like the example, works for each one. i know i'm missing something simple
$k=0;
foreach($field->choices as &$results){
if($results['value'] == $result[1]){
$results['isSelected'] = true;
}
$k++;
}
Aucun commentaire:
Enregistrer un commentaire